The second part of the expression says "if there is any preceding
sibling c02 that has any descendant (say a c03 or a c04) that has a did with
a container etc....."
The new Cookbook stylesheets for EAD 2002 use a much simpler syntax (or at
least less verbose) to express this test. Also the use of the self or
descendant axis (//) is apparently very inefficient in terms of computer
From: Rick Silterra [mailto:[log in to unmask]]
Sent: Sunday, July 21, 2002 6:04 PM
To: [log in to unmask]
Subject: XPath deconstruction
Deconstructing EAD style sheets,
Looking at the cookbooks style sheets, I am trying to understand some
of the XPaths.
When deciding to display a box number or not, we want to know if it has
the preceding sibling, so we use logic like this:
<xsl:call-template name="showbox-C02-box" />
<xsl:call-template name="hidebox-C02-box" />
"If not (the preceeding c02 node has a did child, which has a container
child whose type is box and value = box number)
then show the box number,
otherwise hide the box"
But the second condition, where we have the "//" (any descendant), I
don't quite get,
"If the preceeding C02 has any did child at any level with a matching
container type box value" --
Is it possible for this expression to be true for some "did" 's, but
they don't immediately
preceed this one, so we should show the box number anyway?
I "express" my thanks in advance,
Implementation Technical Consultant
Endeavor Information Systems, Inc.
2200 E. Devon Ave. Suite 382
Des Plaines, IL, USA 60018-4505
Voice: (847) 296-2200 x2625
Fax: (847) 296-5636
Toll Free: (800) 762-6300 x2625
Email: [log in to unmask]
Any opinions expressed in this message are those only
of the sender and not of Endeavor Information Systems, Inc.