File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply 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: 314
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: 13842

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: 314
Thanks, Paul.
 
IntelliJ Java IDE
 
subject: Need a Tip to Convert XML Using XSL
 
Threads others viewed
XML to XML using XSLT
move an element to top
is it possible?
XSLT Sorting Problem
Using XSL to display XML
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture