Re: Pattern matching error in xsl:key
Ihe Onwuka <[email protected]>
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <CALfs7+y7RA2Z5o6NwwYwTgiOpBNBsP5en9My6pOm6QwK0CP=BA@mail.gmail.com> |
I used eq as there was no need for an existential operator but it does go away using "=". On Sat, Sep 5, 2020 at 5:52 AM Martin Honnen <[email protected]> wrote: > Am 05.09.2020 um 11:43 schrieb Ihe Onwuka: > > <versionChanges > > > <changes from="4.0" to="4.1"> > > <rename from="me" to="you"/> > > </changes> > > </versionChages> > > > > <xsl:param name="source" select="4.0"/> > > <xsl:param name="target" select="4.1"/> > > > > <xsl:key name="changes" match="changes[@from eq $source and @to eq > > $target]/rename/*" use="@from"/> > > > > Warning at char 11 in xsl:key/@match on line 36 column 111 of > > translator.xsl: > > XPTY0004 An error occurred matching pattern > > > {element(Q{mynamespace}changes)[((data(attribute::attribute(Q{}from))) eq > > (atomizeSingleton($source))) and ((data(attribute::attribute(Q{}to))) > eq > > (atomizeSingleton($target)))]}: > > > Does the warning go away with using "=" instead of "eq" as the operator? > > Or are you using schema-aware XSLT and the "from" and "to" attributes > have a numeric type? > > What is rename/* supposed to select or the sample you have shown? > > > > _______________________________________________ > 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