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

Re: how can I get the subelement

Subject: Re: how can I get the subelement
From: sally <lsui@xxxxxxxxxxx>
Date: Wed, 15 Nov 2000 11:41:10 -0800
get subelement
I just don't want the output

if the element is an end-element(that is, the element have no child element), then
I want it output nothing, so do you know how can I get it?

thanks

--Liying

David Carlisle wrote:

> > It just strange
>
> what's strange? You get the output that I'd expect.
>
> You get the same result from your stylesheet as you'd get from a
> stylesheet that had no templates at all, ie the result of the default
> templates which just give you the character data from the input.
>
> You wrote
>
> <xsl:template match="//author/*" >
>
> It is always redundent to start a match with //.
> so that is equivalent to
>
> <xsl:template match="author/*" >
>
> which is the template that matches any child element of an author
> element. But your author elements don't have element children
> just text. So your styleheet effectively has no templates.
>
> I don't know what you are trying to achieve, so not sure what
> you do want instead of this.
>
> David
>
> _____________________________________________________________________
> This message has been checked for all known viruses by Star Internet delivered
> through the MessageLabs Virus Control Centre. For further information visit
> http://www.star.net.uk/stats.asp
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.