[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: why no indent here

Subject: Re: why no indent here
From: Boudewijn Bosgoed <bbosgoed@xxxxxxx>
Date: Mon, 12 Dec 2011 09:22:16 +0100
Re:  why no indent here
Op 12 dec 2011, om 08:59 heeft Roelof Wobben het volgende geschreven:

> When I have a xml piece of this :
> <body>Naam : Tamara Wobben
>         Geboorte gewicht : 2000 gram
>         Geboorte lengte : 44 cm.
>         Geboortedatum : 1 september 2005
> </body>
> And I do <xsl:value-of select="body" or I do <xsl:copy-of select="body">
Then all the text will be displayed as this :
> Tamara Wobben  Geboorte gewicht : 2000 gram Geboorte lengte : 44 cm
Geboortedatum : 1 september 2005


With this xml input it is hard to create the output you want. Do you
create/generate the xml input file yourself? It has a lack of structure.

Actually, the labels you are using, like "Naam" and "Geboorte gewicht" can be
the element names in the xml input file.

	<naam>Tamara Wobben</naam>
        <geboortegewicht>2000 gram</geboortegewicht>
        <geboortelengte>44 cm</geboortelengte>
        <geboortedatum>1 september 2005</geboortedatum>

With this kind of structured xml you can create any output you want by using

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.