Re: [xsl] stylesheet organisation

Subject: Re: [xsl] stylesheet organisation
From: Jesper Tverskov <jesper@xxxxxxxxxxx>
Date: Sat, 3 Sep 2011 15:31:37 +0200
I'm sorry that I dropped "as far as I know" from my posting right
before I hit the Send button, but I some times take chances in order
to stir up things that makes it possible for all of us to learn
something.

I still feel that the spec pretty much says what I'm saying,
http://www.w3.org/TR/xslt20/#import, and that most of the differences
are due to the simple fact the xsl.import must be the first child. Why
is it important that it is the first child (there could be other
reasons)? I am wondering if that is also how xsl:include and
xsl:import are some times implemented in XSLT processors? I'm
wondering if some of the finer details, some of you mention, are
actually questions of implementation?

My rule of thumb analysis has worked well for me in all trivial use
cases, and if things are not trivial or if I have doubts I always test
things. As a generalization, easy to remember, I have until now not
been able to get anything closer than what I have already said.

But maybe some of us can come up with some solid test cases that work
across implementations to see if it is possible to make an even better
rule of thumb analysis, still easy to remember as a first shot that
works in most cases except in situations where we need testing anyway.

Thanks for the provided insights.

Cheers
Jesper Tverskov
http://www.xmlplease.com

Current Thread