Does anyone have a transform to change comments into annotations in an existing schema?
Loren Cahlander <[email protected]> Wed, 21 Nov 2012 09:45:13 -0600
| Newsgroups | gmane.text.xml.schema.devel |
|---|---|
| Message-ID | <[email protected]> |
I am looking to transform comments that precede an element and make those comments as an annotation for that element. for example: <!-- Information about foo --> <xs:element name="foo-group"> . . . </xs:element> to <xs:element name="foo-group"> <xs:annotation> <xs:documentation>Information about foo</xs:documentation> </xs:annotation> </xs:element> I have a bunch of schemas that I need to transform. Another issue is: Does anyone have a way of formatting the annotations? Through oXygen, I found that I could add schematron elements within the documentation. The only one that I found useful was <p xmlns="http://purl.oclc.org/dsdl/schematron"></p> Has anyone used better formatting of annotations? Thank you, Loren