[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: More XSL Discussion
[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
|
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
|