Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Non-critical) Error deploying app/xslt/helpers/analyse-journals.xsl #809

Open
olvidalo opened this issue Mar 11, 2025 · 0 comments
Open

Comments

@olvidalo
Copy link
Contributor

When trying to store analyse-journals.xsl in eXist during deployment, it fails with the following error:

[main] ERROR (NativeValueIndex.java [convertToAtomic]:1049) - org.exist.xquery.XPathException: exerr:ERROR Type error: string {current-grouping-key()} is not a valid xs:ID 

This is caused by lines 257, 333, 409, 485 (thanks @schlusslicht for pointing this out) which all contain:

<item xml:id="{current-grouping-key()}">

This confuses eXist's native value index which does not understand XSLT syntax, tries to validate the value "{current-grouping-key()}" as an xml:id and fails.

A possible workaround is to use the xsl:attribute constructor element instead of the @xml:id attribute directly, which should be equivalent:

<item>
  <xsl:attribute name="xml:id" select="current-grouping-key()"/>
   <!-- rest of the element content -->
</item>

However, it doesn't seem the file is used anywhere in the app. As the app deployment works regardless of the error, we could leave it like this. A nicer solution would be to either delete the file (if it's not used) or use the workaround outlined above, so the errors disappear. Let me know what you want to do, I can make a PR with the fix if you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant