cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19423] New: - XPointer implementation in XInclude Transformer is broken
Date Tue, 29 Apr 2003 11:42:17 GMT
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=19423>.
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=19423

XPointer implementation in XInclude Transformer is broken

           Summary: XPointer implementation in XInclude Transformer is
                    broken
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: core
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: tschlabach@gmx.net


Take this XML file as somefile.xml:

<html>
  <head>
    <title>Dummy document</title>
  </head>
  <body>
    <p>One paragraph!</p>
  </body>
</html>

<xi:include href="somefile.xml#xpointer(/html/body)"/> results in nothing being
included though this should be correct sntax according to the XPointer spec.

Using

<xi:include href="somefile.xml#xpointer(//html/body/*)"/> instead seems to be a
workaround, but *only* as long as the document that is beeing included does not
use a special namespace.

If you try to include an XHTML document neither

<xi:include href="somefile.xml#xpointer(//html/body/*)"/>

nor

<xi:include href="somefile.xml#xpointer(/xhtml:html/xhtml:body)"/>

will yield any results. It just silently includes nothing without *any* messages
in any log file.

Mime
View raw message