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

examples ruin ampersands #695

Open
sydb opened this issue Sep 8, 2024 · 0 comments
Open

examples ruin ampersands #695

sydb opened this issue Sep 8, 2024 · 0 comments

Comments

@sydb
Copy link
Member

sydb commented Sep 8, 2024

[I thought I had already submitted a ticket on this, but can’t find it.]

The content of an <egXML> is messed with such that it is impossible (as far as I can tell) to have an appropriately escaped string on output. That is, (as far as I can tell) there is no input one can use within an <egXML> element in an ODD file that will generate the following output.

<sch:assert test="count( tei:author ) gt 4">No more than four &lt;author> elements allowed</sch:assert>

I have tried at least the following inputs, all to no avail.

No more than four &lt;author> elements allowed
No more than four &amp;lt;author> elements allowed
No more than four &#x26;author> elements allowed
No more than four &#38;author> elements allowed
No more than four <![CDATA[&lt;]]>author> elements allowed

My instinct is that the template "verbatim-Text" in file common/verbatim.xsl (and all calls to it) should simply be eliminated. The problem would then be we would need to go through existing <egXML> elements to see if any needed updating to match. Also this would be a backward-incompatible change that a user might complain about, so we would want to announce this change loudly well ahead of doing it, I guess.

@sydb sydb added this to the Release 7.58.0 milestone Sep 8, 2024
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