|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: No match or what...
Hakan Pettersson wrote:
>
> Hi,
>
> could anyone explain.
>
> I want following result:
>
> library
> book
> chapter
>
Well your XSLs say you want value-of, which generally means 'the text
portion of everything contained in this item'. Value-of is recursive, so
you get everything each time.
You probably want to be using apply-templates here to do the recursion,
and if you insist of having such a strange way of labelling your data
structure, try <xsl:value-of select="text()"/> to get the freetext
label.
I'd suggest you modify your XML schema, as your data example:
<library>
library
...
</library>
is obviously redundant.
Sorry, but this structure looks odd.
.dan.
:=====================:====================:
: Dan Morrison : The Web Limited :
: http://here.is/dan : http://web.co.nz :
: dman@xxxxxxxx : danm@xxxxxxxxx :
: 04 384 1472 : 04 495 8250 :
: 025 207 1140 : :
:.....................:....................:
: If ignorance is bliss, why aren't more people happy?
:.........................................:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








