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

RE: using an attribute's value as input for value-of?

Subject: RE: using an attribute's value as input for value-of?
From: "Matthieu Ricaud" <matthieu.ricaud@xxxxxxx>
Date: Tue, 22 Feb 2005 16:30:19 +0100
xsl using attribute value
if your XSLT processor doesn't support any evaluate() function you can
implement it.
Take a look at :
http://www.exslt.org/dyn/functions/evaluate/index.html

and :
http://www.xmleverywhere.com/tips/xslt.htm

hope this help,

Regards,
Matthieu.

-----Message d'origine-----
De : Michael Kay [mailto:mike@xxxxxxxxxxxx]
Envoye : mardi 22 fevrier 2005 16:20
A : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Objet : RE:  using an attribute's value as input for value-of?



Look for extension functions such as saxon:evaluate() or
saxon:evaluate-node().

The details depend on your chosen XSLT processor. This can't be done in
standard XSLT.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Jakob Fix [mailto:jakob.fix@xxxxxxxxx]
> Sent: 22 February 2005 15:08
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  using an attribute's value as input for value-of?
>
> I would like to use the value of an attribute which contains an
> Expression as the input for an value-of.  Like this:
>
>
> input xml
> ...
> <elt attr=".//elta|.//eltb"/>
> ...
>
>
> xsl stylesheet
> ...
> <xsl:value-of select="@attr"/>
> ...
>
> In this case, I know, the actual output will be ".//elta|.//eltb".
> How must I proceed to get the expression evaluated, and the resulting
> value be output instead?
>
>
>
> cheers,
> --
> Jakob.

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.