I don't know about the Xinclude transformer, but the Cinclude one surely can.
I've been using it regularly that way.


On Fri, 21 Sep 2001 13:43:53 +0100, Morrison, John wrote:
From: "Morrison, John" <[EMAIL PROTECTED]>
--

> Hi all,
> 
> Does anybody know if the XIncludeTransformer can cope with the cocoon:/
> protocol?
> 
> I'm trying to get:
> 
> <xsl:template match="f">
>     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
>       parse="xml">
>       <xsl:attribute name="href">cocoon:/src/<xsl:value-of
> select="geography"/><xsl:value-of select="name"/></xsl:attribute>
>     </xi:include>
> </xsl:template>
> 
> to work.  The log looks like:
> 
> DEBUG   (2001-09-21) 13:34.16:546   [cocoon  ] (/eg/c.xml)
> HttpProcessor[8080][4]/XIncludeTransformer: Processing XInclude element:
> href=cocoon:/src/c2.xml, parse=xml
> DEBUG   (2001-09-21) 13:34.16:546   [cocoon  ] (/eg/c.xml)
> HttpProcessor[8080][4]/AbstractXMLPipe: Exception in endDocument
> java.lang.RuntimeException
>       at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170)
>       at
> org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
> andlerImpl.java:433)
>       at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:49)
>       at
> org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler
> .java:190)
>       at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
> ava:1182)
>       at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
>       at
> org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
> andlerImpl.java:433)
>       at
> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:49)
> 
> Thanks,
> 
> J.
> 
> 
> =======================================================================
> Information in this email and any attachments are confidential, and may
> not be copied or used by anyone other than the addressee, nor disclosed
> to any third party without our permission.  There is no intention to
> create any legally binding contract or other commitment through the use
> of this email.
> 
> Experian Limited (registration number 653331).  
> Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


--
Sergio Carvalho
---------------
[EMAIL PROTECTED]

If at first you don't succeed, skydiving is not for you

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

Reply via email to