You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Rice Yeh <ri...@gmail.com> on 2007/06/26 08:44:10 UTC

servlet: protocol cannot be used in xsl:include's href attribute in a xsl file?

Hi,
  Can the servlet: protocol can be used in xsl:include's href attribute in a
xsl file? I keep get MalformedURLException in URL<init> with servlet:
protocol. I remember there is a discussion on writing URLStreamHandler for
servlet: protocol. Is this  problem related to that discussion?

Regards,
Rice

Re: servlet: protocol cannot be used in xsl:include's href attribute in a xsl file?

Posted by Joerg Heinicke <jo...@gmx.de>.
Rice Yeh <riceyeh <at> gmail.com> writes:

> Can the servlet: protocol can be used in xsl:include's href attribute in a xsl
> file? I keep get MalformedURLException in URL<init> with servlet: protocol.
> I remember there is a discussion on writing URLStreamHandler for servlet:
> protocol. Is this  problem related to that discussion?

>From what I understand it's an issue of using Cocoon's source resolver in XSLT
and to which extend it's used. There was also an issue reported on the users
list about missing XML catalogue when an XML document is retrieved via
document() [1]. So even with a URLStreamHandler handling the servlet protocol on
the classloader level the XML catalogue would not be available. Can somebody
give what's actually the status on this?

Joerg

[1] http://marc.info/?t=118242413600004&r=1&w=4


Re: servlet: protocol cannot be used in xsl:include's href attribute in a xsl file?

Posted by Rice Yeh <ri...@gmail.com>.
After checking my code again, I find it is a error in my sitemap.

Thank you guys.
Rice

On 6/26/07, Grzegorz Kossakowski <gk...@apache.org> wrote:
>
> Rice Yeh pisze:
> > Hi,
> >   Can the servlet: protocol can be used in xsl:include's href attribute
> > in a xsl file? I keep get MalformedURLException in URL<init> with
> > servlet: protocol. I remember there is a discussion on writing
> > URLStreamHandler for servlet: protocol. Is this  problem related to that
> > discussion?
>
> I agree with Joerg that the problem is probably in how Cocoon resolver is
> used by XSLT processor. See:
> https://issues.apache.org/jira/browse/COCOON-2044#action_12490040
>
> --
> Grzegorz Kossakowski
> http://reflectingonthevicissitudes.wordpress.com/
>

Re: servlet: protocol cannot be used in xsl:include's href attribute in a xsl file?

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Rice Yeh pisze:
> Hi,
>   Can the servlet: protocol can be used in xsl:include's href attribute 
> in a xsl file? I keep get MalformedURLException in URL<init> with 
> servlet: protocol. I remember there is a discussion on writing 
> URLStreamHandler for servlet: protocol. Is this  problem related to that 
> discussion?

I agree with Joerg that the problem is probably in how Cocoon resolver is used by XSLT processor. See:
https://issues.apache.org/jira/browse/COCOON-2044#action_12490040

-- 
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/