RelaxNG 中的嵌套注释?
尝试使用 Trang 进行转换,从 RelaxNG 获取以下 XSD 输出:
<xs:annotation>
<xs:documentation>Basic documentation text here.</xs:documentation>
<xs:appinfo>
<jxb:class name="VmlLocation">
<jxb:javadoc>
Javadoc text here.
</jxb:javadoc>
</jxb:class>
</xs:appinfo>
</xs:annotation>
.. 但除了 RNC '##' 之外,声明注释的方法似乎都不起作用,它会生成一组注释/文档标签。 Trang 似乎忽略了使用括号的方法。 有什么线索吗?
Trying to get the following XSD output from RelaxNG, using Trang for conversion:
<xs:annotation>
<xs:documentation>Basic documentation text here.</xs:documentation>
<xs:appinfo>
<jxb:class name="VmlLocation">
<jxb:javadoc>
Javadoc text here.
</jxb:javadoc>
</jxb:class>
</xs:appinfo>
</xs:annotation>
.. but none of the methods for declaring annotations seem to work except the RNC '##', which generates one set of annotation/documentation tags.
Methods using brackets seem to be ignored by Trang.
Any clues?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Trang 有一定的限制,但我知道作为 attribute 和 element 元素子元素的 a:documentation 元素将被传输,前提是它们仅包含纯文本(没有子元素或属性)。 a:documentation 可能也适用于其他地方。它绝对不能作为语法元素或定义元素的子元素。
Trang is somewhat limited, but I know that a:documentation elements that are children of attribute and element elements will be transferred, provided that they contain only plain text (no child elements or attributes). It's possible that a:documentation works in other places too. It definitely does not work as the child of a grammar element or define element.