[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Templates
> 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|