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

Subject: [xsl] [XPath] matching elements which satisfy a specific content model
From: Tobias Reif <tobiasreif@xxxxxxxxxxxxx>
Date: Mon, 13 Jan 2003 10:19:30 +0100
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

title?, varlistentry+

in XPath?

I think I'm missing something obvious. If it's very simple, then I'm happy :)

Else I think it would be great to have something like content-model():

  <t:template
   match="variablelist[content-model(title?,varlistentry+)]">

Tobi

--

Vim users               donate.
http://iccf-holland.org/donate.html

Web developers           check.
http://www.pinkjuice.com/check/


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



Current Thread