[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Xslt 2.0 disable-output-escaping attributes
[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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|