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

Problem with DTD #45

Closed
boydkelly opened this issue May 18, 2022 · 5 comments
Closed

Problem with DTD #45

boydkelly opened this issue May 18, 2022 · 5 comments
Labels
bug format_specs format specifications, new versions

Comments

@boydkelly
Copy link

Running xmllint with the dtd and sample data produces this error. It seems to not even want the |br at all in the dtd.

xmllint --dtdvalid xdxf_strict.dtd rev34.xml 
xdxf_strict.dtd:13: parser error : MixedContentDecl : '|' or ')*' expected
<!ELEMENT description (#PCDATA|br)>
                                 ^
xdxf_strict.dtd:13: parser error : expected '>'
<!ELEMENT description (#PCDATA|br)>
                                 ^
xdxf_strict.dtd:13: parser error : Content error in the external subset
<!ELEMENT description (#PCDATA|br)>
@ryanlo713
Copy link

I also encountered this problem.

Can this problem be fixed by adding *, like <!ELEMENT description (#PCDATA|br)*> ?

@boydkelly
Copy link
Author

This is what I did. https://gitlab.com/ci-dict/dyu-xdxf/-/blob/main/xdxf_strict.dtd

Very little activity here....

@ryanlo713
Copy link

Another problem I encountered was that without format="logical", GoldenDict can not render successfully with the style. It was downloaded from here

image

This looks like GoldenDict does not support the rev. 34 of XDXF

@boydkelly
Copy link
Author

boydkelly commented Jan 14, 2023

Its such a shame that these guys don't collaborate somewhat more... And communicate. Actually pyglossary also has a few issues. But there seems to be no input from the dev here. Project dead in the water.

soshial added a commit that referenced this issue Jan 15, 2023
Thanks to @boydkelly for noticing this.
@soshial
Copy link
Owner

soshial commented Jan 15, 2023

I am sorry for such long delays, @boydkelly. The Russian aggression against Ukraine impacted my participation in the project.

@soshial soshial closed this as completed Jan 15, 2023
@soshial soshial added bug format_specs format specifications, new versions labels Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug format_specs format specifications, new versions
Projects
None yet
Development

No branches or pull requests

3 participants