Subject: Re: [xsl] regarding newline From: Peter Davis <pdavis152@xxxxxxxxx> Date: Thu, 11 Jul 2002 03:41:38 -0700 |
On Thursday 11 July 2002 03:14, subbu@xxxxxxxxxxxx wrote: > Wheather or not i am in the right track to declare entities in the dtd file > and refer them in the XSL .. The XML parser that reads the stylesheet (before it is sent to the XSLT processor) is not required to read external files for the DTD. You didn't say which XSLT processor you are using (and which XML parser the XSLT parser uses), so I can only guess that this is the problem. If the XML parser is not reading external DTD files, then the <!ENTITY> declarations are being ignored. The solution is probably to not declare the entities in an external file, but inside the DOCTYPE like this: <!DOCTYPE xsl:stylesheet [ <!ENTITY ... > <!ENTITY ... > ]> <xsl:stylesheet ...> If it still doesn't work, or if you want to keep the entities in a single separate file for maintainability purposes, then try configuring your XSLT processor to use a different XML parser. I should ask though, is typing "&newline;" really that much better than typing " "? BTW, newlines and tabs are only normalized to a single space in *attribute values*, not normal text. So you can avoid using 
 or whatever in some places, if you wish. -- Peter Davis XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] regarding newline, subbu | Thread | Re: [xsl] regarding newline, David Carlisle |
RE: [xsl] Converting Strict XHTML +, Americo Albuquerque | Date | Re: [xsl] regarding newline, David Carlisle |
Month |