[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Xslt 2.0 disable-output-escaping attributes
Subject: [xsl] Xslt 2.0 disable-output-escaping attributes From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx> Date: Mon, 26 Jan 2004 17:02:55 -0000 |
[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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[no subject], David Carlisle | Thread | RE: [xsl] Xslt 2.0 disable-output-e, Andrew Welch |
Re: [xsl] copying attributes to all, George Cristian Bina | Date | RE: [xsl] Re: Displaying XSLT XML , Mike Spencer |
Month |