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

RE: XSL special chars output prob.

Subject: RE: XSL special chars output prob.
From: Thomas Brand <brand@xxxxxxxxx>
Date: Tue, 11 Jun 2002 11:38:27 +0200
0d 0a carriage return xsl

hello julian, thanks for you answer. when using extension functions, wouldn't it be the same problem?

At 11:11 11.06.2002 +0200, you wrote:
This is by design.

XML doesn't allow any control characters except TAB, NL and LF, and
therefore, you can't produce them with plain XSLT.

>
> the goal is to transform a given xml document (not shown here) to a file,
> that has a strange header with special characters. if i view an example
> output file with a hex editor, i see 7F 0D 0A 17 00 04 01 etc.
>
> well, why not use &#x<here the two digits> in my xsl stylesheet i
> thought.
> this works well for the most characters, i.e. line feed (0A). the problem
> arises when trying to output &#x00, &#x01 etc.
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
>
> <xsl:output method="text" encoding="ISO-8859-1"/>
>       <xsl:template match="/">
>               1 &#x40;
>               2 &#x26;
>               3 &#x0A;
>               4 &#x0D;
> <!--  5 &#x00;
>               6 &#x01;
>               7 &#x04;
>               7 &#x17;
> -->
>       </xsl:template>
> </xsl:stylesheet>



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.