andreathedove Posted May 16, 2008 Share Posted May 16, 2008 Hello,I have a problem with this node: <mCN>GAMES & TOYS</mCN> in & .With this line: <xsl:for-each select="//products/product[mCN='GAMES & TOYS')]"> I have this problem, why ?http://www.allinonenet.it/le_vetrine/CIPI/...amp;_ACCAPPATOIThanks,Andrea Link to comment Share on other sites More sharing options...
boen_robot Posted May 17, 2008 Share Posted May 17, 2008 Encode both of your ampersands: <mCN>GAMES & TOYS</mCN> <xsl:for-each select="//products/product[mCN='GAMES & TOYS')]"> Link to comment Share on other sites More sharing options...
andreathedove Posted May 17, 2008 Author Share Posted May 17, 2008 Encode both of your ampersands:<mCN>GAMES & TOYS</mCN> <xsl:for-each select="//products/product[mCN='GAMES & TOYS')]"> I am sorry, but the feed xml is remotely, and I can not change the node :-( .Andrea Link to comment Share on other sites More sharing options...
boen_robot Posted May 17, 2008 Share Posted May 17, 2008 A link to the "feed" (it's an ordinary XML file really)? Link to comment Share on other sites More sharing options...
andreathedove Posted May 17, 2008 Author Share Posted May 17, 2008 A link to the "feed" (it's an ordinary XML file really)?this is the codehttp://pf.tradedoubler.com/export/export?m...202937134147617Andrea Link to comment Share on other sites More sharing options...
boen_robot Posted May 18, 2008 Share Posted May 18, 2008 Well, at least encode the ampersand in your XSLT.Could you also give a link to your XSLT file? Link to comment Share on other sites More sharing options...
andreathedove Posted May 18, 2008 Author Share Posted May 18, 2008 Well, at least encode the ampersand in your XSLT.Could you also give a link to your XSLT file?This is the link:http://www.allinonenet.it/le_vetrine/cipi/prodotti.xslAndrea Link to comment Share on other sites More sharing options...
andreathedove Posted May 22, 2008 Author Share Posted May 22, 2008 This is the link:http://www.allinonenet.it/le_vetrine/cipi/prodotti.xslAndreanobody help me ?Andrea Link to comment Share on other sites More sharing options...
boen_robot Posted June 7, 2008 Share Posted June 7, 2008 Sorry. I was unavailable for some time, and it seems no one else had an idea on your problem.I'm able to run this XML/XSLT pair in Stylus Studio with the default parameters. No errors. So, the problem must be somewhere in your ASP. I'm not sure I can help much there though. This started out as an XML well formdness error, but it seems there is no such thing. Both of your files are parsed properly in IE and any other XML parser I was able to find, and even transform without an error... well... the result is not exactly astonishing, but still - there's no error. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.