[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: More XSL Discussion

Subject: Re: More XSL Discussion
From: Chris Maden <crism@xxxxxxx>
Date: Thu, 26 Feb 1998 14:46:17 -0500
maden more
[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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.