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

Re: RE: [SPAM] - RE: RE: [SPAM] - Re: cha

Subject: Re: RE: [SPAM] - RE: RE: [SPAM] - Re: characters in xsl - Bayesian Filter detected spam - Bayesian Filter detected spam
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 11 Nov 2004 16:41:19 GMT
spam re
>  I haven't got it.

when considering // it's important to distinguish select expressions
(which use Xpath) to Match patterns (which use an XSLT-specific
construct that looks a lot like a subset of Xpath, but is actually
separately defined). Actually it's important to disinguish these all the
time but usually people find // is the first problem case...

select="foo" 
just selects the foo children of teh current node, and
select="//foo"
selects all the foo elements in the document.

however

match="zzzz"

matches the current node if there is any node anywhere in the tree such
that the Xpath zzzz evealuated at this other node would select a node
set that includes the current node.

so
match="foo"
matches any foo element anywhere as evaluating select="foo" on the
parent of that node would select the foo node.
similarly
match="//foo" also matches any element as evaluatinng that on an
ancestor of the current element will select the current element.

Note // is not always redundant in match patters, just redundant at the
beginning.

match="a//b" matches all b elements that have a as an ancestor, as
select="a//b" evaluated on the parent of a would select those b
elements.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.