Re: No match or what...

Subject: Re: No match or what...
From: Dan Morrison <dman@xxxxxxxx>
Date: Fri, 05 May 2000 03:05:32 +1200
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


Current Thread