On Thu, 01 Feb 2001, Chad wrote:
>
> How can I tell sablotron to ignore xml elements that are not defined in the xsl
>stylesheet? ie
> My xml is <person> <name>Bob</name> <address>main street</address></person>
They have to be defined otherwise the defaults is to output their data
content.
> I want to use and xsl sheet that will only print out "Bob" and will not print his
>address.
>
> What is the easiest way to do this.
A null rule:
<xsl:template match="address"></xsl:template>
This allows the element type to be resolved with the stylesheet
but causes no emission of the data content.
///Peter