RE: [xsl] Templates

Subject: RE: [xsl] Templates
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 6 Sep 2007 22:45:16 +0100
> I am struggling to write a template that can handle  ( (NOTE+, 
> (PARA, NOTE*)?) | (PARA, NOTE*) )?
> part of the DTD. Can anyone help me with this.

A template can only match a single node, not a sequence of nodes.

You need to explain what output you are trying to produce.

If you are trying to match the sequences of nodes corresponding to part of
the grammar, then you've got a problem which is generally referred to as
"positional grouping", though when the grammar gets as complex as this then
you are essentially writing a parser for the grammar expressed by the DTD.

Michael Kay

Current Thread