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
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

 
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.