I would like to see this kind of stuff retained. Right now we lose comments too. :-\

Can you file a JIRA issue for this? I'm not sure what the solution is (retain the underlying xml document?), but if you have ideas would love to hear them.

- Dan

Martin Ahrer wrote:
I'm trying to process the following XML Schema using the Apache XMLSchema 1.0.3 API.

<xs:simpleType name="Timestamp" basel:isdate="Yes" basel:dateformat="yyyy-MM-dd HH:mm:ss">
    <xs:restriction base="xs:string">
<xs:pattern value="\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])"/>
    </xs:restriction>
</xs:simpleType>

Non-standard XMLSchema attributes (here basel:isDate, basel:dateformat etc.) are included in the schema definition. Does XmlSchema provide any support for retaining this application specific attributes to be later read by some custom code? I haven't found any API to read this from the schema information returned by the XmlSchema parser.

Should information of this kind rather be modeled as annotation/appinfo - for which in fact is support by XmlSchema?

Thanks
  Martin



--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to