RE: [xsl] [XPath] matching elements which satisfy a specific content model

Subject: RE: [xsl] [XPath] matching elements which satisfy a specific content model
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 16 Jan 2003 14:39:34 -0000
> Hi
> 
> I need to match a variablelist containing:
> 
>    1. An optional title element,
>    2. after this, one or more varlistentry elements.
> 
>    <t:template match="variablelist[...]">
>                                    ^^^
> How to write
> 

Use XSLT 2.0 and schemas

<xsl:template match="variablelist[. instance of my:vbl-list-type]">

We are working on improving the syntax for this common case.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread