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

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.