This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Need a Tip to Convert XML Using XSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Need a Tip to Convert XML Using XSL" Watch "Need a Tip to Convert XML Using XSL" New topic
Author

Need a Tip to Convert XML Using XSL

Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
I have prepared a XSL file to convert a XML file. The XSL file works for most of the XML nodes. I am stuck in converting one special type of XML node.

Let me show my XML input file and the XSL conversion file below. The node that I seek help is . How do I pick up the value of s:ref?

medicalNotes.xml file:


medicalNotes.xsl file:
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You use "@" to specify the attributes axis. So in this case "@s:ref" would select that attribute.
Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
Thanks, Paul.
 
wood burning stoves
 
subject: Need a Tip to Convert XML Using XSL
 
Similar Threads
XML to XML using XSLT
is it possible?
Using XSL to display XML
move an element to top
XSLT Sorting Problem