Subject: Re: Suppressing source tree content From: Sara Mitchell <smitchel@xxxxxxxxxx> Date: Mon, 12 Apr 1999 09:22:44 -0700 |
I had a problem like this in the prototype I put together. The answer I came up with may not be the most elegant, but it worked (at least in LotusXsl which is the tool I was using). I simply output a comment instead of outputing the content. It looked like this: <xsl:template match="para[@userlevel='NOVICE']"> <xsl:comment>Novice level information skipped. </xsl:comment> </xsl:template> Sara Mitchell "John E. Simpson" wrote: > > This seems like something I ought to know, but don't (and I can't find a > reference to it in the WD). > > Is there any way to suppress nodes in the source tree so they're not copied > to the result? Assume a document something like this: > > <root> > <elem1>...</elem1> > <elem2>...</elem2> > </root> > > Can I transform this to a result like this: > > <root> > <elem1>...</elem1> > </root> > > That is, *not* include elem2 in the result? (Assume there's a > default/built-in rule for the document as a whole.) > > ========================================================== > John E. Simpson | The secret of eternal youth > simpson@xxxxxxxxxxx | is arrested development. > http://www.flixml.org | -- Alice Roosevelt Longworth > > 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 -> |
---|---|---|
Suppressing source tree content, John E. Simpson | Thread | Re: Suppressing source tree content, John E. Simpson |
Severe limitations in tests ([]) an, Kevin Smith | Date | Re: Almost XLink..., Simon St.Laurent |
Month |