- From: Ariel Gertzenstein <agertzen@yahoo.com>
- Date: Tue, 22 Feb 2000 12:10:17 -0600 (CST)
- To: www-xml-schema-comments@w3.org
My name is Ariel Gertzenstein. I am working at the Georgia Institute of Technology on translating a manufacturing file to XML format. In the manufacturing spec there are some complex BNF productions that are used several times. For example: <complex_BNF> ::= <elem1>,<elem2>,...,<elem25> One approach I can take when making the XML Schema is to build a new element for this complex_BNF. And have an element reference to this new element for each appearance of the BNF production. This would reduce the size of the XML Schema but there is going to be a new XML tag for the complex_BNF_production, and this name was not supposed to be in the original manufacturing file. Another approach is to have a super-type containing all the attributes and elements of the "complex_BNF". This type would be inherited by all the element types which refer to the complex_BNF_production. My question is: how do I specify the order of elements inside a type which has local elements and inherited elements. How can I use order=all for all the elements? Which elements go first, the local or the inherited ones? Another approach I was thinking is to have a separate file for each complex BNF production. And have it included with an INCLUDE tag. But can INCLUDE tags be put anywhere in the XML Schema? The really better way to do this would be to be able to use some kind of MACRO (something like DTD's entities). This way I could replace one word with a lot of elements. Thank you very much, Ariel Gertzenstein. _________________________________________________________ Do You Yahoo!? Obtenga su dirección de correo-e gratis @yahoo.com en http://correo.espanol.yahoo.com
Received on Tuesday, 22 February 2000 13:10:27 UTC