[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Mon, 26 Jan 2004 17:01:20 -0000


I have to use:

<xsl:attribute name="style" saxon:disable-output-escaping="yes">
  <xsl:value-of select="."/>

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

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(.))"/>

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.


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

Current Thread