xsl-list
[Top] [All Lists]

RE: [xsl] Templates

2007-09-06 14:45:21
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
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>