From: Stephen F. <ste...@hp...> - 2004-03-11 18:11:13
|
I have XSLT files that I'm storing in the eXist database (1.0b1 current CVS). The files have the entity " " used thoughout. When they're loaded into the database, the entities are expanded since the files are being parsed. I need to get the or the numerical equivalent entity to appear in the final document. I've tried a number of the techniques for specifying entities such as using   or using <!DOCTYPE stylesheet [ <!ENTITY nbsp "<xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> I either get the expanded to blanks or to "&nbsp;" depending on what I try. In the latter case, I end up with the text "&nbsp;" rather than the blank. I've also tried using <![CDATA[ ]]> which still gets expanded to "&nbsp;". Another attempt was to use &nbsp; - this got expanded to &nbsp;. I've also tried using the xmlchar stylesheets (http://xmlchar.sf.net/.) but the characters in the their stylesheets get expanded to the actual characters so that is a blank. Unfortunately, " " appears also in our xml content files. If it were just the XSLT files, I would just store them externally. This has to be a common problem anywhere that XML goes through more than one parser- has anyone come up with a solution? Thanks in advance, Steve Fleischman |