File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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.
I agree. Here's the link:
subject: SOS beginner needs XSLT help
Copying One node values from one xml to another xml
XSLT get parent node based on child node's attribute
how to fix the weird characters from displaying in xsl output?
Problem deploying two war files to one instance of jboss-5.1.0.GA
Accessing attribute with colons
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015