This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]