speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
292 stars 36 forks source link

conditional expression in XPath #401

Closed pr-apes closed 2 years ago

pr-apes commented 2 years ago

@pgundlach,

https://doc.speedata.de/publisher/en/xpathfunctions/#_the_following_xpath_expressions_are_handled_by_the_software contains as last item:

Sorry, I’m not being picky, but if (…) then … else if (…) then … else … is also allowed.

Maybe I’m being oversensitive here, but with simple (conditional) expressions, I thought there was no else if here (compare it to \if … \else …\fi in TeX).

Just a comment that may turn into better wording in the documentation.

Many thanks for your excellent work.

pgundlach commented 2 years ago

I am not sure I understand your comment. I want to express that what is written on https://www.wwp.northeastern.edu/outreach/seminars/_current/presentations/xslt/mdh_xsl_conditionals_tutorial_04.xhtml is allowed in the select/test attributes of the speedata Publisher. Is my wording incorrect?

pr-apes commented 2 years ago

I have just realized that my approach is wrong.

else if (with no ending word) may be understood as a nested conditional (what could not be the case if a closing operator were used [such as in Lua or TeX, to name two]).

Sorry for the wrong report.