xsl-list
[Top] [All Lists]

RE: [xsl] request validation of the input document from within the XSLT stylesheet

2006-05-05 04:55:32
  I don't see exactly what you thought about.  Can you please 
explain it a little bit further, or show a kind of sample, in 
the context of validating the input trees?

Essentially, if you start from lexical XML, there's a sequence of processing
that takes place on the input document before the XSLT stylesheet sees it.
This might include:

* validation against DTD or schema
* adding DTD or schema-based type information
* whitespace stripping
* xinclude processing
* xml:id processing

You typically want to process input documents in different ways depending on
the circumstances, so the process needs to be parameterized in some way. The
question is, should these processes be controlled by the stylesheet code or
by something external ("the application")?

Generally XSLT 2.0 has opted to have it controlled externally - except for
whitespace stripping, which was already there in 1.0 (and is not without its
problems).

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--