Gary Benson wrote:
> 
> On Sat, 2 Feb 2002, Matt Sergeant wrote:

<snip/>

> > Lack of a good test suite. Every time I fix it for one person it breaks
> > for everyone else.
> 
> Matt, have you seen httpd-test (http://httpd.apache.org/test/)? Part of
> it, perl-framework, is a regression tester for apache and I expect it
> would be trivial to patch it up to test AxKit. I'm quite familiar with it
> (although I haven't looked for a few months :)) and I don't mind putting
> in the preliminary work. As far as AxKit goes I'm not too familiar with
> anything other than basic XSL but once the framework is in place it
> shouldn't be hard for others to write tests.
> 
> You interested?

That would be awesome, Gary.

Regarding this specific relative URI bug, the problem is that there is a
single naive set of callbacks that are expected to handle
matching/opening/closing all external documents that will be processed
in a given run, but the context in which those relative URI are expected
to be evaluated are different:

<xsl:import>, <xsl:include> -> URIs resolved in the context of the
stylesheet containing the tag.

the document() function -> URIs resolved in the context of the base XML
document being transformed by the stylesheet.

Further complicating things is the fact that it is perfectly legitimate
to have a call to document() in an imported stylesheet and it is *stll*
expected to resolve in the context of the XML doc being processed.

Bottom line: there's no "one size fits all" here. :-(

-kip

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to