Subject: RE: [xsl] Re: stylesheet debug/dump From: "Michael Kay" <mhk@xxxxxxxxx> Date: Wed, 17 Dec 2003 22:46:31 -0000 |
Part of the aim of the integration with XML Schema in XSLT 2.0 is being able to detect Xpath expressions and other constructs that are inconsistent with the schema for the data. The idea is to enable static checking through the type system that any path expression is capable of producing results. It's a bit of an open question how far systems will be able to do this in practice; I think the more draconian end of the spectrum is likely to lead to too many errors reported against constructs that are actually perfectly reasonable. But I think there's quite a lot of potential for XSLT 2.0 processors to offer improved diagnostics in this area, e.g. by providing users with control over the level of warnings that are output. Michael Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Raffaele Sena > Sent: 17 December 2003 21:44 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: [xsl] Re: stylesheet debug/dump > > > > Yes, that is similar to what I need, but the tools that > Holman provides > work on his "literate" stylesheets, not on regular stylesheets. > > I guess I could write an XSL transformation that covers the > main cases > (XPath in <xsl:template> <xsl:* select>, etc). But trying to > cover all the > cases (variables, XPath expressions embedded in output element using > {expr} syntax, etc.) may be too much. And still, without > "executing" the > original stylesheet it's even more difficult, if not impossible, to > combine paths, for example in nested templates. > > Anyway, thanks for the document. > > -- Raffaele > > > On Wed, 17 Dec 2003, Dimitre Novatchev wrote: > > > > > > > What I would really like is a tool that matches the XPaths > > > referenced by > > an > > > XSL stylesheet with the path in an XML file. > > > > > > Even something that would generate the list of XPaths > referenced by > > > an XSL stylesheet will suffice (then it would be quite > easy to parse > > > an XML file, generate paths for each node and match them with the > > > paths in a > > stylesheet). > > > > > > Does anybody know if such a tool for XSL exists ? Or has any > > > suggestion of how to write it or knows of any XSLT > processor with an > > > API that would > > allow > > > me to do that ? > > > > G. Ken Holman described a similar tool in his presentation > > "Synthesizing stylesheets using "Literate XSLT"" at this year's > > Extreme Markup conference: > > > > > http://www.idealliance.org/papers/extreme03/ht> ml/2003/Holman01/EML2003 > > Holman01-toc.html > > > > and > > > > > http://www.idealliance.org/papers/extreme03/au> thor-pkg/2003/Holman01/E > > ML2003Holman01.zip > > > > > > > > Dimitre Novatchev. > > FXSL developer > > > > http://fxsl.sourceforge.net/ -- the home of FXSL > > Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html > > > > > > > > > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > > > > > > > XSL-List > info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: stylesheet debug/dump, Raffaele Sena | Thread | [xsl] listing links in xsl?, james walker |
[xsl] XRTreeFrag ClassCastException, Chris Pratt | Date | RE: [xsl] pretty-printing XML into , Lars Huttar |
Month |