[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSchema question
At 17:41 04/08/98 -0700, Don Park wrote: [...] > >Anyway, it is clear to me at this point that XSchema does not address >'dynamic-schema' and 'inline-schema'. Actually I think it does - although I may people aren't going to be comfortable with the former - rather like self-modifying code. If I understand you you want to have a schema/DTD that changes dynamically with time, driven by the contents of the (changing) document. This is not common in traditional SGML where the DTD is used to constrain documents to a pre-conceived format. Your approach is to review the contents of the log file and change the DTD/schema to reflect them. It isn't common to generate DTDs from documents but there is a tool called FRED from OCLC which apparently does this. Of course a human could also do it. XSchemas can be 'inline' in that being an XML document they can be included (using the entity mechanism: <!DOCTYPE MyLog [ <!ENTITY myschema SYSTEM "myschema.xml"> ]> <MyLog> &myschema; ... rest of log file ... </MyLog> This includes the content of the myschema.xml file, so it's part of the tree. It cannot be dynamic. If you want it dynamic you could use something like: <MyLog> <schemaLink xml:link="simple" show="embed" actuate="user" href="myschema.xml"/> ... rest of log file ... </MyLog> We haven't yet defined the syntax or mechanism whereby an XSchema gets 'used' and you are welcome to devise your own. So the second syntax would allow you to link to the (dynamically updated) myschema.xml file at arbitrary intervals. The file could change in the meantime. If this is what you want to do you'll probably have to write your own system for managing it because I guess it's not commonly done in SGML. P> xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
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
|