Xpath try catch not allowed in XSLT?
Ihe Onwuka <[email protected]> Sun, 13 Sep 2020 14:09:59 -0400
| Newsgroups | gmane.text.xml.saxon.help,gmane.text.xml.xsl.general.mulberrytech |
|---|---|
| Message-ID | <CALfs7+wBXhDU5LoexDX+zemmZBnFTyTAL70uCzWRsXpwjg3yxQ@mail.gmail.com> |
Error near {... (try {key} at char 73 in xsl:element/@namespace on line 98
column 55 of translator.xsl:
XPST0003 try/catch expressions are not allowed in XPath
I am running Saxon 10.2
My use case was wanting to use the zero-or-one XPath function which does
exactly what I want but returns an error where I want an empty () node
returned.
hence
try {zero-or-one($someSequence)}
catch * {()}
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help