[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: 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
end of file character
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
(&#x1A; and &#x03;), 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.