Subject: Re: how can I get the subelement From: sally <lsui@xxxxxxxxxxx> Date: Wed, 15 Nov 2000 11:41:10 -0800 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: how can I get the subelement, David Carlisle | Thread | Re: how can I get the subelement, David Carlisle |
[ANN] XSLT UK 01 Registration, Dave Pawson | Date | Re: include text file, Mike Brown |
Month |