This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: No match or what...
- To: xsl-list at mulberrytech dot com
- Subject: Re: No match or what...
- From: Dan Morrison <dman at es dot co dot nz>
- Date: Fri, 05 May 2000 03:05:32 +1200
- Organization: Disorganised
- References: <20000504073340.55553.qmail@hotmail.com>
- Reply-To: xsl-list at mulberrytech dot com
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@es.co.nz : danm@web.co.nz :
: 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