xsl-list
[Top] [All Lists]

RE: [xsl] [ERR XTSE0210] when importing a stylesheet indirectly

2008-02-28 14:57:48
I think what you are missing is that in XSLT, imports have global effect.
That is, if A imports B, then the things in B become visible to every module
in the stylesheet, not just to A; also things in A become visible to B. So B
doesn't need to import A.

I don't think there was a change here after the book was published - either
it's wrong, or you've misread it.

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

-----Original Message-----
From: Johannes Neubauer 
[mailto:johannes(_dot_)neubauer(_at_)cs(_dot_)tu-dortmund(_dot_)de] 
Sent: 28 February 2008 21:32
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] [ERR XTSE0210] when importing a stylesheet indirectly

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I try to do something like this:

A imports B
B imports A

This does not work. I get an [ERR XTSE0210] (saxonb-9.0.0.2 
for java). I had a look at the specification and found that 
this is normal behaviour.
This seems to be one of the rare cases where the spec changed 
after XSLT 2.0 Programmers Reference Third Edition.

How can I avoid to have circular dependencies, when I have 
something like this:

Stylesheet 'A' has several xsl:key definitions. One of them 
uses a function of 'B'. B uses some of the key definitions of 
'A'. This is a general requirement, I think. The restriction 
is really constraining me or is there a workaround despite 
from splitting 'A' in many pieces, in order to avoid 
circularities? Sometimes this will be impossible, if there 
are real circular dependencies (an xsl:key depends on the 
function and the function calls exact that key). Another 
possibility would be, to include (not xsl:include) the key 
into 'B', but then I cannot modularize well, if more than one 
module depends on the keys of 'A'.

wfg,
Jonny.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHxyhXGaEJacf6i/cRAo7xAJ9EE2h0a9z+y1Q3gQeQdkXswg3wkwCeJq97
wXoBwTmAcWwtfj3YpbWgkVo=
=4+xz
-----END PGP SIGNATURE-----

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



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