You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Uwe Gerger <Uw...@bmw.de> on 2003/03/12 10:44:33 UTC

XInclude-problems with Cocoon2.0.4

Hello,
I would like to use xinclude-statements in my xml-file with Cocoon2.0.4
with my own tags for example <rpt:data>. Specifying such a tag as
follows <xi:include href="include.xml#xpointer(/p/rpt:data)"/> doesn't
work.

Instead using <xi:include href="include.xml#xpointer(/p/rpt)"/> works!



Here my include.xml file:

<?xml version="1.0"?>
<p  xmlns:rpt="http://cocoon.clsw.com/report"> 
  <rpt:data>Test</rpt:data> 
  I am <strong>included</strong> by XIncludeTransformer.
  I come from "include.xml".
  <content>A</content>
</p>


What's wrong?


Thanks

-- 
Uwe Gerger                                _/_/_/   _/    _/  _/    _/
BMW AG, TG-53 IT-Technologie             _/   _/  _/_/_/_/  _/    _/
80788 Muenchen                          _/_/_/   _/ _/ _/  _/ _/ _/
Tel: +49 89 382 35687                  _/   _/  _/    _/  _/_/_/_/
Fax: +49 89 382 49040                 _/_/_/   _/    _/  _/    _/
mailto:Uwe.Gerger@bmw.de

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: XInclude-problems with Cocoon2.0.4

Posted by Uwe Gerger <Uw...@bmw.de>.
Hello,
the interesting thing is that in version 2.0.3 the use of namespaces
works correctly!

Should I use the XInclude-Transformer from this version?

Thanks
	Uwe

ceyates@stanford.edu schrieb:
> 
> Uwe Gerger wrote:
> 
> >Hello,
> >I would like to use xinclude-statements in my xml-file with Cocoon2.0.4
> >with my own tags for example <rpt:data>. Specifying such a tag as
> >follows <xi:include href="include.xml#xpointer(/p/rpt:data)"/> doesn't
> >work.
> >
> >
> >Instead using <xi:include href="include.xml#xpointer(/p/rpt)"/> works!
> >
> <snip/>
> 
> >What's wrong?
> >
> >
> 
> quoting from XIncludeTransformer javadoc:
> 
> "My first pass at an XInclude transformation"
> 
> The transformer does the basics correctly but stumbles with anything
> more complicated.  It doesn't always handle absolute URLs, nested
> xinclude elements, nor apparently namspace prefixes in xpointers.  You
> might consider modifiying the source to get the namespace support you
> would like and submitting a patch if it works.
> 
> Charles
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

-- 
Uwe Gerger                                _/_/_/   _/    _/  _/    _/
BMW AG, TG-53 IT-Technologie             _/   _/  _/_/_/_/  _/    _/
80788 Muenchen                          _/_/_/   _/ _/ _/  _/ _/ _/
Tel: +49 89 382 35687                  _/   _/  _/    _/  _/_/_/_/
Fax: +49 89 382 49040                 _/_/_/   _/    _/  _/    _/
mailto:Uwe.Gerger@bmw.de

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: XInclude-problems with Cocoon2.0.4

Posted by Charles Yates <ce...@stanford.edu>.
Uwe Gerger wrote:

>Hello,
>I would like to use xinclude-statements in my xml-file with Cocoon2.0.4
>with my own tags for example <rpt:data>. Specifying such a tag as
>follows <xi:include href="include.xml#xpointer(/p/rpt:data)"/> doesn't
>work.
>  
>
>Instead using <xi:include href="include.xml#xpointer(/p/rpt)"/> works!
>
<snip/>

>What's wrong?
>  
>

quoting from XIncludeTransformer javadoc:

"My first pass at an XInclude transformation"

The transformer does the basics correctly but stumbles with anything 
more complicated.  It doesn't always handle absolute URLs, nested 
xinclude elements, nor apparently namspace prefixes in xpointers.  You 
might consider modifiying the source to get the namespace support you 
would like and submitting a patch if it works.

Charles



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org