cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurens Holst (JIRA)" <j...@apache.org>
Subject [jira] Created: (COCOON-1855) Can't load from fragment URLs
Date Sat, 27 May 2006 02:14:29 GMT
Can't load from fragment URLs
-----------------------------

         Key: COCOON-1855
         URL: http://issues.apache.org/jira/browse/COCOON-1855
     Project: Cocoon
        Type: Improvement

  Components: * Cocoon Core  
    Versions: 2.1.9    
    Reporter: Laurens Holst


Hi,

When I try to load a document fragment with a file generator, e.g. toc.xml#dev, Cocoon throws
a loading error (java.io.FileNotFoundException: C:\Development\Projects\BBCocoon\toc.xml#home),
while it would be really nice if it would instead retrieve the fragment of that document which
the fragment identifier indicates.

This is how XSLT 1.0 behaves, quote: "If the URI reference does not contain a fragment identifier,
then a node-set containing just the root node of the document is returned. If the URI reference
does contain a fragment identifier, the function returns a node-set containing the nodes in
the tree identified by the fragment identifier of the URI reference."

This would have been convenient; now as a workaround I have to either split up the toc.xml
file or pass the ID along as a parameter to the XSLT, which can then go to the desired fragment.


~Grauw

p.s. I'm having xml:id attributes for IDs, and using Saxon as XSLT processor.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message