[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Do you have XSLT code that converts a Schema Comp
The Xerces2 Java package ( https://xerces.apache.org/xerces2-j/index.html ) supports the Schema Component Designators ( https://www.w3.org/TR/2010/CR-xmlschema-ref-20100119/ ) . There is a DOM implementation (org.apache.xerces.dom.PSVIDOMImplementationImpl) provided that will, in conjunction with the XML parser, access the necessary schemas and decorate the DOM Elements and Attributes parsed from any XML with the schema information pertaining to that Element or Attribute. There is also support for creating schema grammars ( XSGrammar ) and converting a grammar to org.apache.xerces.xs.XSModel, which contains the "schema component designators" for that grammar. On Fri, Apr 12, 2024 at 7:02b/AM Roger L Costello costello@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > - What happens to attributes? > > > > There are no attributes. > > > > - What happens to choice particles? > > > > There are no choices. > > > > - What happens to model groups? > > > > There are no groups. > > > > - What happens to simple types? > > > > There are simpleTypes but all I am interested in is the elements b > minOccurs, maxOccurs, and default. I donbt need to generate values for the > elements. I am just interested in the metadata for each element. > > > > /Roger > > > > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/1067740> (by > email <>)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|