A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
SOS beginner needs XSLT help
Joined: Apr 24, 2004
Oct 25, 2006 10:18:00
I have an XML document that does not have any space between brackets as follows:
<?xml version="1.0" encoding="UTF-8"?> <root><One><a>toto</a><a>titi</a></One><One><a>tata</a><a>tutu</a></One></root>
I have been looking for an XSLT script that would give me that:
<?xml version="1.0" encoding="UTF-8"?> <root> <One> <a>toto</a> <a>titi</a> </One> <One> <a>tata</a> <a>tutu</a> </One> </root>
or something more human-readable that the first example. Is that possible?
I have been working on that all day long without much success as I am a beginner in xslt. Any help or clue immensely welcome!!
Joined: Oct 14, 2005
Oct 25, 2006 11:41:00
Looks like you have an acceptable answer
so I will close this thread.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: SOS beginner needs XSLT help
Copying One node values from one xml to another xml
Accessing attribute with colons
how to fix the weird characters from displaying in xsl output?
XSLT get parent node based on child node's attribute
Problem deploying two war files to one instance of jboss-5.1.0.GA
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013