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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 18716
    
    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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need a Tip to Convert XML Using XSL