wood burning stoves 2.0*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
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