Subject: Re: More XSL Discussion From: Chris Maden <crism@xxxxxxx> Date: Thu, 26 Feb 1998 14:46:17 -0500 |
[Paul Prescod] > target-element matches an element, not the lack of an element. > Consider: > > <element type="list"> > <element type="item" count="any"> > <target-element ....> > </element> > </element> [Matti Katajamaki] > In my mind if <a><b><c> are elements of type "item" the rule [above] > would match each of them as a target element. Sorry. "Element type" is a precise term; the generic identifier is the element type name, and <element type="FOO"> matches exactly and only the elements whose type name is "FOO". The element <a> is an element of type "a"; <b> is an element of type "b", and so on. So you are correct that *if* <a><b><c> are elements of type "item"..., but they're not. See section 3.1 of REC-xml-19980210, specifically the paragraph after the "Start-tag" productions. -Chris -- <!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN"> <!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN" "<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487 <USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: More XSL Discussion, Matti Katajamaki | Thread | Re: More XSL Discussion, Paul Prescod |
RE: More XSL Discussion, Matti Katajamaki | Date | scripting, Rakesh Mohan |
Month |