XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Shahid KhanSubject: Problems using '&' and '>' in C code generated using XML and XSL
Author: Shahid Khan
Date: 08 Mar 2006 04:59 PM
Hi all,
I am new to XML and XSL(T) world.
I have a XSL stylesheet (AA.xslt) which takes as input an XML file (BB.xml) and generates code in C-language (DD.c).

I am trying to generate some code that involves '&' and '>' for pointer reference etc. But in my final DD.c file I get '&' and '>' instead of '&' and '>' signs.

So far I have tried:

1. <![CDATA[ ... ]]>
2. <xsl:text disable-output-escaping='yes'> ... </xsl:text>
3. A combination of both of the above.
4. Using the code : &#38; for '&'

but none have helped me.

I will really appreciate your help on this issue.

Thanks,
Shahid

Posttop
Minollo I.Subject: Problems using '&' and '>' in C code generated using XML and XSL
Author: Minollo I.
Date: 08 Mar 2006 05:12 PM
What is your output method? If the output method is "text", as I would assume it is - as you are creating "C", specifying to disable escaping should avoid escaping &'s and >'s

You can change the output method in the "Params" tab of Stylus Studio XSLT editor, or by typing:
<xsl:output method="text"/>
...after the <xsl:stylesheet> element in yout XSLT.

Minollo

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.