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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2016)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
V HemSubject: &+#x00A; are replacing with ' ' on click of
Author: V Hem
Date: 28 Apr 2006 10:46 AM
Originally Posted: 28 Apr 2006 10:44 AM
Hi I have a XSL Template: &+#x00A; - means "&" and "#x00A" one word - without the "+" <xsl:template name="htmlify"> <xsl:param name="text"/> <xsl:choose> <xsl:when test="contains($text, '&+#x00A;')"> <xsl:variable name="before" select="substring-before($text, '&+#x00A;')"/> <xsl:variable name="after" select="substring-after($text, '&+#x00A;')"/> <xsl:value-of select="$before"/> <xsl:call-template name="htmlify"> <xsl:with-param name="text" select="$after"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$text"/> </xsl:otherwise> </xsl:choose> </xsl:template> everytime i click the "Ident XML Tags" button the &+#x00A; are replacing with ' '. How can I disable this?

Postnext
Minollo I.Subject: &+#x00A; are replacing with ' ' on click of
Author: Minollo I.
Date: 28 Apr 2006 11:07 AM
The "indent" operation goes through a parsing operation of your XSLT (or XML); and that forces the expansion of entities. We preserve those entities in all cases, except when they are used inside attribute values, as in your case.

In many cases you will get entities back in the indented result as a result of the serialization step; in the Stylus Studio version you are running, that happens for &amp;, but not for &#xA. In the next release, 2006rel3 - available in June, &#xA will be preserved too.

Hope this helps,
Minollo

Posttop
V HemSubject: &+#x00A; are replacing with ' ' on click of
Author: V Hem
Date: 28 Apr 2006 11:31 AM
ok thanks
for the reply!
i am using XML Enterprise 2006, Release 2

   
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.