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 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Peter CiuffettiSubject: > in xsl:attribute gives ><
Author: Peter Ciuffetti
Date: 03 May 2000 11:53 AM

I am using the evaluation copy of Stylus in Excelon 2.1on Windows NT. If I try to output an &gt; into an attribute using <xsl:attribute> I get a spurious &lt; in the created attribute.

Given the following test xml document:

<?xml version="1.0"?>
<test>
</test>

and the following XSLT template:

<xsl:template match="test">
<test>
<xsl:attribute name="myattr">
<xsl:text>&gt;</xsl:text>
</xsl:attribute>
</test>
</xsl:template>

The output produced is:

<test myattr="&gt;&lt;"/>

I have tried using the disable-output-escaping feature of xsl:text but this appears to have no effect.

I have also tried

<xsl:template match="test">
<test>
<xsl:attribute name="myattr">
<xsl:text>></xsl:text>
</xsl:attribute>
</test>
</xsl:template>

But this gives the same output. I believe &gt; and &lt; are permitted in XML attributes but I cannot find a way to get rid of the extra &lt; whenever I try this.

Posttop
(Deleted User) Subject: > in xsl:attribute gives ><
Author: (Deleted User)
Date: 03 May 2000 11:59 AM
This bug has been fixed for the next release. If it produces acceptable output, you can use the HTML output mode as a workaround.

Alex Lloyd
eXcelon corp.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.