Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

string to xpath (nodelist)

 
robert bisang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
my problem is a xsl:variable which is concatinated. for example like this:
/Offer/Brick[@name='InsuredPerson1']/Attribute[@name=$fullAttributeName]/Value
now when i do a xsl:value-of i always get this string back and not the value in the element "Value".
thanks for help
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess this can be achieved only using xslt extensions.
Which procesor are you using?
if using xalan , you can use the extension function evaluate, similar to the eval construct provided by many programming languages.

HTH
 
robert bisang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot.
i'm using saxon, but it's the same command and it's working!
bye
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic