Subject: Re: [xsl] Ascii end-of-file character output in an XSL file From: Kevin Rodgers <kevin.rodgers@xxxxxxx> Date: Thu, 19 May 2005 09:09:53 -0600 |
Jim Neff writes: > How would I generate the ASCII character "1A", which is an end-of-file > character. No, in ASCII that is Control-Z aka SUB (SUBSTITUTE in Unicode). End of file is Control-D aka EOT (END OF TEXT) in Unicode. Neither of those characters is allowed in XML documents and thus is not allowed in XSLT stylesheets. Whether they occur in the document/ stylesheet's encoding or you represent them via character references ( and ), they are not allowed: http://www.w3.org/TR/2004/REC-xml-20040204/#charsets http://www.w3.org/TR/2004/REC-xml-20040204/#sec-references > I know how to generate the carrage returns and line feed characters along > with spaces. > > Like this: <xsl:text>
</xsl:text> > > But I cannot find any documentation on how to do this with the "1A" > character. Is there a way in XSLT to output an external unparsed entity (which would contain the disallowed character)? -- Kevin Rodgers
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Ascii end-of-file charact, Michael Kay | Thread | Re: [xsl] Ascii end-of-file charact, David Carlisle |
[xsl] UTF-8 to ASCII encoding probl, john.watson1@xxxxxxx | Date | Re: [xsl] UTF-8 to ASCII encoding p, David Carlisle |
Month |