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

RE: Invalid unicode character - Problem

Subject: RE: Invalid unicode character - Problem
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 5 Mar 2003 19:57:01 -0000
invalid unicode
> I am trying to place ASCII characters below 32 in my XSL document as
> follows:

Actually you are trying to place Unicode characters in the document.

The only Unicode characters below 32 that are allowed in XML are 9, 10,
and 13. This is an XML restriction, not XSLT.

Michael Kay

> 
> <?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="/">
> <xsl:variable name="LF12" select="'&#x1F;&#x0A;12&#x1F;'" /> 
> <xsl:variable name="SO" select="'&#x0E;'" /> <xsl:variable 
> name="SI" select="'&#x0F;'" /> ... <xsl:copy-of 
> select="$LF12" /> <xsl:copy-of select="$SO" /> <xsl:copy-of 
> select="$SI" /> </xsl:template> </xsl:stylesheet>
> 
> Problem I encountered is that whenever I load it I get a 
> Parse Error of "Invalid Unicode Character".  I could change 
> the values and run the resulting text through a Hex 
> translator but with several thousand characters that can 
> follow it could take time.  As I'm new to the whole XSL 
> language I don't know all the ins and outs yet but if there 
> is a way I would appreciate it if you could let me know.
> 
> Thanks in advance for any help received in this matter.
> 
> Thorsten
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.