xsl-list
[Top] [All Lists]

Re: validating stylesheet

2005-01-21 12:23:51
Hi all,

Apologies for replying to a very old email, but it addresses an issue I wanted
to ask about.

    * To: "'Cirip Tomas'" <tomas(_dot_)cirip(_at_)t(_dot_)(_dot_)(_dot_)
      <mailto:tomas(_dot_)cirip(_at_)t(_dot_)(_dot_)(_dot_)>>,"'XML-Dev mailing 
list \(E-mail\)'"
      <xml-dev(_at_)l(_dot_)(_dot_)(_dot_) 
<mailto:xml-dev(_at_)l(_dot_)(_dot_)(_dot_)>>
    * Subject: RE: [xml-dev] Validating stylesheet
    * From: "Michael Kay" 
<michael(_dot_)h(_dot_)kay(_at_)n(_dot_)(_dot_)(_dot_) 
<mailto:michael(_dot_)h(_dot_)kay(_at_)n(_dot_)(_dot_)(_dot_)>>
    * Date: Fri, 24 Jan 2003 09:13:00 -0000
    * Importance: Normal
    * In-reply-to: 
<F0FD42ECBD1123429E9E4E21233151D855393C(_at_)m(_dot_)(_dot_)(_dot_)
      <http://www.stylusstudio.com/xmldev/200301/post10580.html>>
    * Reply-to: <michael(_dot_)h(_dot_)kay(_at_)n(_dot_)(_dot_)(_dot_) 
<mailto:michael(_dot_)h(_dot_)kay(_at_)n(_dot_)(_dot_)(_dot_)>>

------------------------------------------------------------------------
I need to validate XSLT <http://www.stylusstudio.com/xslt.html> document.
How can I do that using either DTD or XML Schema?

Why would you want to validate an XSLT document using a DTD or XML Schema,
when you can do the job much more thoroughly with an XSLT processor?
Michael Kay


An XSLT processor doesn't always report errors. For example, we are developing
Cocoon applications, which use Xalan by default as the XSLT processor.
Sometimes, when there's a structural mistake in a stylesheet (e.g. an
<xsl:choose> with a literal result element child), we get either no error
message from Xalan, or an error message that gives no hint as to what the
mistake was.
When we substitute Saxon for Xalan, we generally get much better error
messages. (However Cocoon has certain incompatibilities with Saxon, so we
can't just use it by default.)
So we would like to validate our XSLT documents separately from using them.
It may well be that we can do it with an XSLT processor, e.g. with Saxon, but
I've been searching in vain for documentation on how to do so -- e.g.
command-line arguments. Maybe Saxon just always does it and you can't turn it 
off.
If so, that's the answer I'm looking for.
I would also like to know if there is a command-line switch for Xalan or
xsltproc to do this. (If they do so without switches, I would like to know
that too.)

Please CC me with any answers, as I don't always scan this list.

Thanks,
Lars


--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>