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

Problematic DTD's #79

Open
nilgun opened this issue Nov 12, 2022 · 2 comments
Open

Problematic DTD's #79

nilgun opened this issue Nov 12, 2022 · 2 comments

Comments

@nilgun
Copy link
Member

nilgun commented Nov 12, 2022

Docbook-DTD customization is inevitable for large projects.
In DTD customization, ENTITYs can be customized, while ELEMENTs that are not wrapped with ENTITYs cannot. In the latter case, it will no longer be the standard DocBook DTD as the ELEMENTs to be modified are wrapped with ENTITYs.

As a result, there is no choice but to hack the DTD. Then we can make the DocBook DTD our own DTD by placing the original copyright and license information at the beginning of the file, specifying the copyrights associated with the modification and that it is a derivative, and start adding the changes required by our document tree to the DTD.

As for the RELAX-NG/DTD application,
· DTD's conformity to the document tree (xmllint),
· conformance of the document tree to DTD (xmllint), and
· conformity of document tree to RNG (jing)
needs to be tested. The last two alone cannot catch all errors.
That is, it is necessary to generate an RNG from DTD (trang).

After all, it is clear that the PDF generation tools prepared for the standard DocBook-DTD cannot be used.

@Girgias
Copy link
Member

Girgias commented Oct 16, 2023

I've been having a look at the DTD as I'm trying to upgrade it to 5.2, and I think the phd: attribute support can be dropped by "abusing" the standard annotation one, especially as the only useful one is for phd:chunked.

Not sure what to do with our usages of <phpdoc:classref>: tho. Possibly converting this to a stadard Docbook tag and fix the rendering for that tag?

@nilgun
Copy link
Member Author

nilgun commented Oct 16, 2023 via email

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

2 participants