[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Crazy idea
Maxime Levesque <maximel@xxxxxxxxxxxxxx> wrote: > I like the idea very much, have you tried it on a lot > of examples ? Alas, no. We are doing validation of sorts to the documents we are using - but since we've started a very long time ago (two years :-) it isn't XSLT based. It isn't even DTD based since we needed an XML way to manipulate the "language" file, so we used our own very limited XSchema-like XML language. We were planning to migrate to XSchemas if/when they are ever finalized. > Is it hard to generate (automatically) an XSLT > stylesheet for a given XSchema ? Well, in XSchema you can trivially express complex regular expressions which would be a real pain to convert to XSLT. Essentially you'd need to simulate the resulting state machine. On the other hand, it isn't clear you really need this sort of constraints in real world schemas (at least not often), and there are other things you can easily express in XSLT which you can't do in XSchema at all (such as depending on attribute values). It all balances out - I hope. > It's a good oportunity for reuse (of code and architecture) Right. > It seems that XSLT has more uses other than for what it's > designers had in mind. One of the marks of a good standard/theory/piece of code is that you get out of it more then you put into it :-) Have fun, Oren Ben-Kiki XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|