Subject: [xsl] Removing entire branches from a node-set From: ERDI Gergo <cactus@xxxxxxxxxxxxxxxx> Date: Mon, 10 Jan 2005 12:24:16 +0100 (CET) |
test(): a predicate test on nodes tree(R, C1, C2, ...): a tree with root R and immediate children C1, C2, ...
rfilter(T) = NULL, if not test(T.root) tree (T.root, rfilter (T.c1), rfilter (T.c2), ...), if test (T.root)
<root> <node>This node should always be included in the node-set</node> <node lang="en">This node should only be included in the <b>English</b> node-set</node> <node lang="de">This node should only be included in the <b>German</b> node-set</node> </root>
/descendant::node()[(ancestor-or-self::node()/@lang='en' or not (ancestor-or-self::node()/@lang)) and not(ancestor-or-self::node()/@lang!='en')]
-- .--= ULLA! =---------------------. `We are not here to give users what \ http://cactus.rulez.org \ they want' -- RMS, at GUADEC 2001 `---= cactus@xxxxxxxxxxxxxxxx =---' F U CN RD THS U CNT SPL WRTH A DM!
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Character substitution, Jim Fuller | Thread | Re: [xsl] Removing entire branches , David Carlisle |
RE: [xsl] Processing text in XSL, Andrew Welch | Date | Re: [xsl] Removing entire branches , David Carlisle |
Month |