XSLT Error

Thor
User offline. Last seen 2 years 5 weeks ago. Offline
Joined: 03/15/2010
Points: 30

 Hi,

I'm attempting to run a transform on the XML generated in my mashup, and am getting this error:

Error execution Mashup Script : Unable to Parse XML :  The markup in the document following the root element must be well-formed.

I've extracted the <display>'d XML and run it sucessfully with both msxsl and xalan.

I can't really even tell from the trace whether it's complaining about the stylesheet or the instance document...any ideas?

BTW I had to change the .xsl name to attach it to the post.

Thanks,

Thor

0
Your rating: None
smitchell
smitchell's picture
User offline. Last seen 10 hours 19 min ago. Offline
Joined: 08/29/2008
Points: 34

Ah, well one problem I can point out. There is one known issue with the <xslt> statement (which I apologize for as this is not in the documentation). You cannot use templates that match on the root node (root as in XSLT root), i.e., <xsl:template match="/">.

The work around is either <xsl:template match="/*[1]"> or match the expected document root node name such as <xsl:template match="/root">.

<!--Session data-->

 

Sara, technical writer/jackbe