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

Remove all xml:base attributes from the XML input #741

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

tomschr
Copy link
Collaborator

@tomschr tomschr commented Jan 9, 2025

When using xmlstarlet ed -d '//@xml:base', the result XML is formatted. Unfortunately, this destroys the indentation for <screen> elements. As xmlstarlet doesn't have any options to avoid that, we can only use a XSLT stylesheet.

This stylesheet is an attempt to replace above xmlstarlet ed but preserves the indendation.

Needed for locdrop as described in https://confluence.suse.com/display/documentation/Loc+drop+for+Smart+Docs

When using xmlstarlet ed -d '//@xml:base', the result XML is formatted.
Unfortunately, this destroys the indentation for <screen> elements.
As xmlstarlet doesn't have any options to avoid that, we can only use
a XSLT stylesheet.

This stylesheet is an attempt to replace above "xmlstarlet ed" but
preserves the indendation.
@tomschr tomschr requested a review from fsundermeyer January 9, 2025 16:05
@tomschr tomschr self-assigned this Jan 9, 2025
@tomschr tomschr marked this pull request as ready for review January 14, 2025 09:05
@tomschr tomschr merged commit 4cb735b into main Jan 15, 2025
2 checks passed
@tomschr tomschr deleted the remove-xml-base branch January 15, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant