Re: Pattern matching error in xsl:key
Martin Honnen <[email protected]> Sat, 5 Sep 2020 22:16:32 +0200
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
On 05.09.2020 20:48, Ihe Onwuka wrote: > I solved this problem before starting this thread. Yes the select > attribute needs to be quoted, no the type annotations doesn't make a > difference. >> If you are passing the parameters from the outside I think we need to >> see details of the tool (Saxon command line, which shell, oXygen, Saxon >> API with Java code) to ease the task So how do you use Saxon, how do you pass parameters? If you write an XPath literal for a number type in an XSLT "select" attribute then using as="xs:string" of course doesn't help. It would be like writing Java code String d = 4.1; If you pass in parameters from the outside then using the "as" attribute can make a difference as to which type the parameter value has on the XSLT/XPath/XQuery side (which then can allow the use of "eq" instead of "=").