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

Add a way to feed environment information into the XSLT in IngestReader #148

Closed
RKrahl opened this issue Jan 19, 2024 · 0 comments · Fixed by #149
Closed

Add a way to feed environment information into the XSLT in IngestReader #148

RKrahl opened this issue Jan 19, 2024 · 0 comments · Fixed by #149
Labels
enhancement New feature or request
Milestone

Comments

@RKrahl
Copy link
Member

RKrahl commented Jan 19, 2024

The IngestReader first validates its input against an XML Schema Definition (XSD). In a second step, the input is transformed into generic XML ICAT data file format using an XSL Transformation (XSLT).

There should be way to feed additional environment information into that XSL Transformation. One obvious element of that environment information would be the version of the ICAT server the output is going to be ingested into. The XSLT might use that information in conditional statements to adapt the output to the environment.

One case where this would be needed is if icatproject/icat.server#231 will be implemented: the current XSLT shipped with python-icat adds a reference to the Investigation to sample elements. Depending on the version of the ICAT server we will talk to, this relation will need to be adapted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant