xsl-list
[Top] [All Lists]

Re: Ascii end-of-file character output in an XSL file

2005-05-19 08:09:53
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>&#xD;&#xA;</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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--