Subject: Re: Crazy idea From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx> Date: Tue, 7 Sep 1999 19:14:28 +0200 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Crazy idea, Maxime Levesque | Thread | Re: Crazy idea, Francis Norton |
Re: recursive passing parameter, G. Ken Holman | Date | Examples of XSLT/XPath, Stefano POGLIANI |
Month |