[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: hiding some of the source
John, Thanks, I will try that. I am glad to hear it works with XT though, because I will be using XT soon. Matt "John E. Simpson" wrote: <*snip*> > > Matt, I'm the one that asked about suppressing source-tree elements before. > Since then, I've found that one thing that works is to establish empty > template rules (i.e., containing only the pattern and no template) for the > content you want to suppress. Using your above example, something like this: > > <xsl:template match="XSLCONTROL"> > </xsl:template> > > <xsl:template match="PRODUCT"> > <xsl:apply-templates/> <!-- other template stuff, if any --> > </xsl:template> > > The absence of a template for XSLCONTROL works to suppress it, and all its > descendants, while the presence of a template for PRODUCT copies the > contents of the PRODUCT element (and its descendants) to the result. > > Btw, I'm using XT as an XSL processor. I don't know if IE5 behaves the same > way. > > ========================================================== > 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
|
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
|