Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Selecting value of element, whose parent element is different

 
nirjari patel
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can I select like this? value from an element, whose parent element is diferent (ie value of an element from different context) ? OR do I have to select elements from respective parent element only ?

Thanks
 
Paul Clapham
Sheriff
Posts: 21129
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The <xsl:value> element doesn't care that it's a child of some other element which refers to something else. The only relevance of the <xsl:template> element which contains it is that it sets the context node. You can use any XPath element you like in the "select" element of <xsl:value>.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic