This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Including JavaScript
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Including JavaScript
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 4 Oct 2000 18:57:34 +0100
- Reply-To: xsl-list at mulberrytech dot com
> Is there a way to do something like that in xsl:
>
> <xsl:value-of select="<xsl:value-of select="@pattern">"/>
You can do many things that are "something like that", but whether they will
have the right effect is anyone's guess, since you don't tell us what you
expect the output to be.
Perhaps @pattern contains an XPath expression? In that case the answer is
no, (this keeps coming up), you can't execute an XPath expression that is
read from the source document or constructed at run-time from a string.
Unless you use Saxon and the saxon:evaluate() extension.
>
> Someone helped me and tell me to use:
> <xsl:value-of select="{@pattern}"/>
>
> But it did not work do you know why ?
Because the select attribute of xsl:value-of is not one of the (few)
attributes in which attribute value templates are allowed.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list