Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need a Tip to Convert XML Using XSL

 
Natalie Kopple
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21319
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You use "@" to specify the attributes axis. So in this case "@s:ref" would select that attribute.
 
Natalie Kopple
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Paul.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic