srkumar Posted December 14, 2007 Share Posted December 14, 2007 Hi,I am trying to convert an XML file through XSLT, the unicode entities in the master xml is converted as symbol in the output xml file.Example:<quote><p>“I want my agents [sales women] to feel that their first duty is to humanity.”</p><byline>—Madame C. J. Walker</byline></quote> <blockquote><p>“I want my agents [sales women] to feel that their first duty is to humanity.”</p><byline>—Madame C. J. Walker</byline></blockquote>I need to retain the unicode entity.Please Guide me.Thanks in Advance,srkumar Link to comment Share on other sites More sharing options...
boen_robot Posted December 14, 2007 Share Posted December 14, 2007 Um... why do you need to retain the entity? XSLT automatically preserves it if it's not allowed in the encoding, but uses it if it's allowed. The resulting file will be smaller that way. Why would you want to kill that behaviour?If you still wish though, I suppose you can try to set up another encoding in the <xsl:output/> element. The XSLT processor will preserve/resolve entities based on the encoding supplied there. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.