This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: xslt spec - or condition


Hi,

You can make more sense of this if you fill in the hidden blanks.

subbu@boltblue.com wrote:

I was going through the XSLT Spec and found the following line there

"chapter|appendix matches any chapter element and any appendix element"

I would read that as "chapter | appendix matches any chapter element and [it matches] any appendix element"

what catches me is that the above line reads chapter and appendix

when i would have thot that '|' would be more close to 'or' than 'and'.
i thot it shud read chapter or appendix.

Yes, it's a bit weird that you could use "and" or "or" and interpret the sentance in the same way in each case. You could make the "or" version distinct as - "chapter | appendix matches any element which is a chapter or an appendix".

Hope this helps -

Francis.

--
"Never mind manoeuvre, go straight at 'em." - Admiral Horatio Nelson




XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]