XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 24th, 2004, 10:25 AM
rasmusp rasmusp is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 rasmusp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 25 sec
Reputation Power: 0
Unhappy XSL insertion of escape character in text file

Hi all,

How can I, from XSL, insert an escape character in the output file?
I have tried to use CDATA, but the XML parser complain about non-unicode characters.
Here is the section that fails:

- <xsl:template match="*/mail">
<![CDATA[  ]]>
60
<![CDATA[  ]]>
S
<xsl:value-of select="text()" />
<![CDATA[ ]]>
</xsl:template>


The square is hex value 1b, escape.
It seems that the XML-parser won't accept control code characters (hex values < 20)

The xsl is produced by a C++ program, and the escape character is inserted with character escaping (\033).

Per

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XSL insertion of escape character in text file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT