how to render "or" in xsl?
I'm told that I should say "20%" instead of "and" in certain calls for an xsl template.
What's the equivalent for "or"? I want to search for a number of ISBNs on Amazon. When using Power Search on Amazon, I can go "isbn: 11111111 or 22222222 or 33333333" and so forth. How should I render that in a call for an xsl template?
Thanks - Dan
Suzanne posted this at 17:01 — 25th January 2004.
She has: 5,507 posts
Joined: Feb 2000
http://www.w3.org/TR/2000/WD-xml-2e-20000814.html#dt-escape for escaped characters.
I'm not aware that XSL has conditional abilities in that way, perhaps you might try this:
http://www.webreference.com/js/tips/020103.html
Suzanne posted this at 17:03 — 25th January 2004.
She has: 5,507 posts
Joined: Feb 2000
Although, this says differently:
http://forums.devshed.com/t39764/s.html
As usual, a sample helps more than an explanation.
More on the above here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/xsl_fund_95ph.asp and if you look around you can see that xsl:if is for single tests and xsl:choose is for multiple tests (when when otherwise), so and and or are not needed?
cubdriver posted this at 18:46 — 26th January 2004.
They have: 13 posts
Joined: Oct 2003
Thanks. I've since learned that %20 actually means "space", and that I can go %20or%20 and the call works just fine.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.