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

use case: replace two element values in xml holding record, keeping all the rest #1

Open
briesenberg07 opened this issue Aug 22, 2023 · 0 comments

Comments

@briesenberg07
Copy link
Owner

This is harder than I thought it would be! I attempted to pattern a stylesheet after 002_localid_implementation_set.xsl, but I need to replace two elements, not just one.

I was also getting the child text that had been in the element I replaced in the output, following the new element with the new child text:

<root>
   <i_replaced>this value</i_replaced>so why am I seeing the old value here!?
</root>

Previous efforts started with iterating through files and invoking a Saxon transformation for each (see cell 9, # process XML [...]), and ended with an idea to use two subsequent transformation scenarios with two stylesheets (see 002_modify_852h.xsl and 002_modify_852i.xsl).

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

No branches or pull requests

1 participant