|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: how can I get the 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








