Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: how to access attribute value as an expression

From: "Oleg Tkachenko [MVP]" <oleg@--!----!---------------.--->
To: NULL
Date: 11/4/2004 1:48:00 PM
Niels Schultz wrote:

> i have created a temporary Node, to pass it as parameter to a
> "generator" template that is supposed to produce a html table, with 2
> columns (or whatever):
> 
> --------------
> Desc. | Value
> --------------
> Desc. | Value
> 
> and so on, now I can't get the "description" from the XML, so I made
> myself a few attributes inside the Nodes Element to assign them to
> elements from the XML file, and I can read the elements name, but I
> need the self-made attributes "value" to access the current elements
> value, I hope i can make myself clear here?! ;)

XSLT doesn't support dynamic XPath evaluation. You can go for extension 
functions (if you are on .NET, check out EXSLT.NET's dyn2:evaluate() 
function) or generating XSLT on the fly workarounds.

-- 
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent