On Thu, 01 Feb 2001, you 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>
>
> 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.
>
> thanks
> chad
>
The following does it for me:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="person">
<xsl:value-of select="name" />
</xsl:template>
</xsl:stylesheet>
Providing you match the person element, then all child elements will only get
output if you specifically call them.
Andrew
--
Dr. Andrew C.R. Martin EMail: [EMAIL PROTECTED]
Lecturer in Bioinformatics WWW: http://www.bioinf.org.uk
University of Reading Tel. (0118) 987 5123x7022 Fax: (0118) 931 0180
"Microsoft may have given you Windows, but Linux gives you the whole house"