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

RE: Answers to review questions in "Beginning XSLT": C

Subject: RE: Answers to review questions in "Beginning XSLT": Chapter 7
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Mon, 17 Mar 2003 11:13:29 -0600
name name.tv
Oops, another change to my revised answers.

> Anyway, the revised answers:
>  *[name() = 'Program'] -- a child element of . named Program that is in the
>    default namespace (that is in scope at this point in the source document)
>    (or no namespace if there is no default).
>  *[starts-with(name(), 'tv:')] -- a child element of . that is in the namespace
>    associated with the tv: prefix in the source document

assuming there is only one such prefix.  If there is more than one, it is
likely that *[starts-with(name(), 'tv:')] will select those elements that are
marked with the 'tv:' prefix in the source document, but not guaranteed.
It may not select any elements.  But it will not select any elements that
are not in the namespace associated with 'tv:'.
No wonder caution is advised in using name()!

>  *[name() = 'tv:Program'] -- a child element of . named Program that is
>    in the namespace associated with the tv: prefix in the source document.

Same caveat as above.

Lars


 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.