RSS 2.0
Sign In
# Tuesday, November 18, 2008

Suppose you have constructed a sequence of attributes.

How do you access a value of attribute "a"?

Simple, isn't it? It has taken a couple of minutes to find a solution!

<xsl:variable name="attributes" as="attribute()*">
  <xsl:apply-templates mode="t:generate-attributes" select="."/>
</xsl:variable>

<xsl:variable name="value" as="xs:string?"
  select="$attributes[self::attribute(a)]"/>

Tuesday, November 18, 2008 11:41:41 AM UTC  #    Comments [2] -
Tips and tricks | xslt
Archive
<November 2008>
SunMonTueWedThuFriSat
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456
Statistics
Total Posts: 85
This Year: 2
This Month: 2
This Week: 1
Comments: 105
Locations of visitors to this page
Disclaimer
The opinions expressed herein are our own personal opinions and do not represent our employer's view in anyway.

© 2009, Nesterovsky bros
All Content © 2009, Nesterovsky bros
DasBlog theme 'Business' created by Christoph De Baene (delarou)