Subject: Re: hiding some of the source
From: Matthew MacKenzie <matt@xxxxxxxxxxxxxxx>
Date: Sun, 11 Apr 1999 17:43:59 -0300
|
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
|