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

Subject: Re: [xsl] [XPath] matching elements which satisfy a specific content model
From: Tobias Reif <tobiasreif@xxxxxxxxxxxxx>
Date: Mon, 13 Jan 2003 12:12:49 +0100
Dimitre Novatchev wrote:


The match pattern is:

variablelist[*[position() = 1 and (self::title or self::varlistentry)]

             and not(*[position() > 1 and not(self::varlistentry)])
            ]


Thanks.

The length and complexity of that XPath reinforces my request for some verx simple syntax/function, so that the length and the level of simplicity of the content model is matched by the matching pattern:

eg
variablelist[content-model(../, 'title?,varlistentry+')]

In other words:
(title?,varlistentry+) is so *very* simple, that I think there should be way to write it in a very simple way.


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