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

Converting RNG to xsd using Trang drops a:documentation element content #256

Open
macksol opened this issue Mar 12, 2020 · 1 comment
Open

Comments

@macksol
Copy link

macksol commented Mar 12, 2020

When converting java -Xmx10G -jar trang-20181222\trang.jar -I rng -O xsd simple.rng simpletrang.xsd the schema is correctly converted but any element/other namespace content is dropped from the annotations

So <a:documentation>test top level rng schema</a:documentation> correctly gets converted to a text only xsd:documentation element but

<a:documentation>What happens now
xhtml:div
xhtml:pThe country attribute provides a choice of:</xhtml:p>
xhtml:ul
xhtml:liUS</xhtml:li>
xhtml:liJP</xhtml:li>
</xhtml:ul>
</xhtml:div>
<ci:include href="zoo-doc.xhtml" xpointer="cheetah"/>
</a:documentation>
is dropped completely

Developers want to include formatted annotations on our schema and pass them through to XSD schema so the documentation is also their.
This will also allow developers to use documentation creation tools (such as the one provided by Oxygen) that supports XSD inpout but not RNG.

See Zip for example input and output

simple.zip

@Zastai
Copy link

Zastai commented Nov 29, 2023

I can't even get plain text <a:documentation>foo</a:documentation> tags in an RNG schema to be preserved as <xs:annotation><xs:documentation>foo</xs:documentation></xs:annotation>.

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