Mark Lundquist wrote:
Hi,
I have some stylesheets containing:
<xsl:import href="context:/path/to/something.xslt" />
In 2.1.6, this causes:
java.net.MalformedURLException: unknown protocol: context
at java.net.URL.<init>(URL.java:544)
at java.net.URL.<init>(URL.java:434)
at java.net.URL.<init>(URL.java:383)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
It worked fine in 2.1.5! Any idea what's going on?
Thanks,
Mark
I don't know why it worked in 2.1.5, but I do know that "context:" is a pseudoprotocol understood only by Cocoon. In particular it isn't understood by an XSLT processor (unless Xalan can somehow get help from Cocoon's URI resolver?)
I have tried using "context:" in stylesheets under Cocoon 2.1.2 and got the same error you did, so had to work around it.
I would appreciate hearing from someone more knowledgeable about this though. If there was a way to do it, it would be nice, although it would make the stylesheet less portable.
Lars
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
