[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Xslt 2.0 disable-output-escaping attributes

Subject: Xslt 2.0 disable-output-escaping attributes
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Mon, 26 Jan 2004 17:02:55 -0000
xslt 2.0 disable output escaping
[forgot title for the archives...]

> Hi,
> 
> I have to use:
> 
> <xsl:attribute name="style" saxon:disable-output-escaping="yes">
>   <xsl:value-of select="."/>
> </xsl:attribute>
> 
> ...in Saxon 7.8
> 
> In the changes section for the 7.8 release notes it states:
> 
> "The attribute disable-output-escaping is no longer supported 
> on xsl:attribute. In theory, you should be able to use 
> character maps instead.
> 
> Casting a string to an xs:QName is now supported: but only in 
> XSLT (not in XPath or XQuery), and only when an explicit cast 
> or constructor function is invoked (not, for example, when 
> passing an untyped atomic value to a function that expects an 
> xs:QName).
> 
> Literal result elements now compile internally into 
> xsl:element and xsl:attribute instructions. This results in 
> changes to trace output: each attribute is now traced as a 
> separate instruction."
> 
> From that I've come up with:
> 
>   <xsl:attribute name="style">
>     <xsl:value-of select="xs:QName(xs:string(.))"/>
>   </xsl:attribute>
> 
> Which fails giving an invalid qname error.
> 
> The string Im trying to output as an attribute is:
> 
> height:expression(scrollHeight >= 300 ? 300 : 'null')
> 
> I need the right angle bracket to come out as is, and not as 
> an entity.
> 
> cheers
> andrew  
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.