cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: why id() does not work in Cocoon
Date Thu, 27 Apr 2000 21:12:23 GMT
Lee Burgess wrote:
> 
> I have noticed that Cocoon does not seem to support the XPath id()
> function.
> 
> To see an example of what is happening, please read:
> 
> http://xml-archive.webweaving.org/xml-archive-cocoon-users/2475.html
> 
> I looked on the Xalan dev list and found this:
> 
> http://xml-archive.webweaving.org/xml-archive-xalan/1346.html
> 
> Thanks for the clue, Mike. :)
> 
> Looking at the code in Cocoon, XalanTransformer.java instantiates an
> XSLTProcessor like so (line 87):
> 
> XSLTProcessor processor = XSLTProcessorFactory.getProcessor(new XMLParser(parser));
> 
> Where parser is created in Engine.java (line 133).
> 
> parser = (Parser) manager.create((String) configurations.get(PARSER_PROP,
>             PARSER_DEFAULT), configurations.getConfigurations(PARSER_PROP));
> manager.setRole("parser", parser);
> 
> This parser is defined by cocoon.properties:
> 
> parser = org.apache.cocoon.parser.XercesParser
> 
> I am starting to get in over my head, but from what I can tell,
> org.apache.cocoon.parser.XercesParser is not compatible or
> interchangeble with org.apache.xalan.xpath.xdom.XercesLiaison, which
> explains why Cocoon does not support id() (I think).
> 
> If I am correct, how hard would it be modify cocoon to allow the
> cocoon.properties to specify org.apache.xalan.xpath.xdom.XercesLiaison
> as the parser?
> 
> Are there other ways to get id() support into Cocoon?

Scott, anything to say here?

This is likely to be a problem with our liaison.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message