This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSLT get parent node based on child node's attribute

 
Vijay Rao
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have been struggling to learn XSL and stuck with one issue.

My input xml file is as follows:



What i need is as follows:

if a object has parentId, get the object whose id attribute matches with
current object's parentId.

If matches and the type of the found parent object is of type 'horizontal',
then get the color object.

below is the xsl i was trying to write.
Any help would be appreciatable.


[ April 11, 2007: Message edited by: Vijay Rao ]
 
Paul Clapham
Sheriff
Pie
Posts: 20196
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this, or something like it:
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic