[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
At 09:18 PM 8/27/2007, you wrote:
If you didn't want "note[count(para)=2]", you could say note[para[2]][not(para[3])]
These could be expressed a bit more intelligibly in XPath 2:
note[exists(para[2])] -- the note has a second para
note[exists(para[2])][not(exists(para[3]))] -- the note has a second para, but not a third
But I might opt for note[count(para)=2] as it's both concise, and quite obvious.
RE: Re: [xsl] Multiple elements condition
Subject: RE: Re: [xsl] Multiple elements condition From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 28 Aug 2007 12:51:39 -0400 |
At 09:18 PM 8/27/2007, you wrote:
So if "note[para[2]] " means "at least 2", how do you express "exactly 2"?
If you didn't want "note[count(para)=2]", you could say note[para[2]][not(para[3])]
These could be expressed a bit more intelligibly in XPath 2:
note[exists(para[2])] -- the note has a second para
note[exists(para[2])][not(exists(para[3]))] -- the note has a second para, but not a third
But I might opt for note[count(para)=2] as it's both concise, and quite obvious.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Multiple elements conditi, Florent Georges | Thread | Re: Re: [xsl] Multiple elements con, Dimitre Novatchev |
Re: [xsl] getting string-length of , Mario Madunic | Date | Re: [xsl] Apply Templates, when to , Wendell Piez |
Month |