[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Accessing a node dynamically using XSL

Subject: Accessing a node dynamically using XSL
From: Sumiit Kumar Mukherjee <sumit.mukherjee@xxxxxxxxx>
Date: Mon, 16 Jan 2006 21:21:58 +0530
sumit kumar mukherjee
I have an XML which is of the format:

<Name type="String">harry</Name>
<Subjects type="String">Literature,Fiction</Subjects>
<Literature type="String">Shakespeare, Woodsworth, Jeffrey
Archer</Literature>
<Fiction type="String">Da Vinci Code</Fiction>

My requirement is like this: First, find out the values in the
<Subjects> element. For each such value [separated by a comma], there
will be an element present in the XML [in this case, Literature and
Fiction]. I need to get the values for each of these elements in turn.
How can this be done in XSL? In short, I am looking for a dynamic way
of accessing elements based on the XML itself. I require this because
I have not idea about the values that might be present under the
<Subjects> element.

Thanks

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.