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

RE: Including JavaScript

Subject: RE: Including JavaScript
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 4 Oct 2000 18:57:34 +0100
use saxon with javascript
> 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


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.