Re: Pattern matching error in xsl:key
Ihe Onwuka <[email protected]> Sat, 5 Sep 2020 14:48:05 -0400
| Newsgroups | gmane.text.xml.saxon.help,gmane.text.xml.xsl.general.mulberrytech |
|---|---|
| Message-ID | <CALfs7+x-+=sWGs1Uw+Hus0ax2pBXZ8XWYM1pqUUcmE7c5-xcqA@mail.gmail.com> |
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. So you now have the scenario where the spec says given the select parameter on the LHS and the from attribute on the RHS '4.0' eq 4.0 is true but 4.0 eq 4.0 isn't true. On Sat, Sep 5, 2020 at 2:40 PM Martin Honnen <[email protected]> wrote: > On 05.09.2020 19:22, Ihe Onwuka wrote: > > Not using schema aware XSLT and the values concerned are version numbers > > and should be treated as strings. > > Then at least in your XSLT code you need to use > > select="'4.0'" > > 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, but the previous hint by Michael > Müller-Hillebrand to declare > > as="xs:string" > > is a good starting point. > > > _______________________________________________ > saxon-help mailing list archived at http://saxon.markmail.org/ > [email protected] > https://lists.sourceforge.net/lists/listinfo/saxon-help _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ [email protected] https://lists.sourceforge.net/lists/listinfo/saxon-help