You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2001/09/24 06:11:53 UTC

DO NOT REPLY [Bug 3785] New: - xinclude transformer doesn't resolve relative urls correctly

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3785>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3785

xinclude transformer doesn't resolve relative urls correctly

           Summary: xinclude transformer doesn't resolve relative urls
                    correctly
           Product: Cocoon 2
           Version: 2.1alpha CVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: Erik.Bruchez@iname.com


I think this has been known for a while, but here it is. I'm using something
like this:

<xi:include 
href="news/index.xml#xpointer(document/body/news-collection/news-entry[position()
&lt;= 5])"/>

It works sometimes, sometimes not. Say the XML document containing the include
above is c:\projects\test\index.xml. I expect the included document to be
c:\projects\test\news\index.xml. Sometimes though, it fails and tries to access
c:\projects\test\anotherdirectory\index.xml.

I'm using a sub-sitemap which mounts the absolute directory c:\projects\test\.
Using something like xml:base="context://xxx/" gets me to
C:\Java\jakarta-tomcat-3.2.2\webapps\cocoon\test\news\index.xml, which is not
what I want either.

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