开发者

Nested annotations in RelaxNG?

开发者 https://www.devze.com 2023-01-19 12:07 出处:网络
Trying to get the following XSD output from RelaxNG, using Trang for conversion: <xs:annotation>

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&g开发者_Python百科t;
</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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号