cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arjé Cahn <A...@hippo.nl>
Subject RE: HTML-Generator - XPATH
Date Thu, 13 Mar 2003 12:47:06 GMT
Harald,

I've run your test on the following Cocoon versions:
- A 2.0.4 checkout (I think) of 25th of november, which works (both with and without the Xpath)
- A 2.0 HEAD of 10th of march, which fails to generate the document at all (even without XPath)
Didn't test it on 2.1 (but you did). 
Can't find anything strange in the logs.

Don't have the time to run further tests now, but it seems like the HTMLGenerator fails in
both 2.0.x and 2.1.

Regards,

Arje Cahn


---------------------------------------------------------
Arjé Cahn, Software Department
Hippo Webworks
Grasweg 35
1031 HW Amsterdam
The Netherlands
Tel  +31 (0)20 6345173 
Fax +31 (0)20 6345179
arje(at)hippo(dot)nl / www.hippo.nl



-----Original Message-----
From: Harald Wehr [mailto:hwehr@hs-harz.de]
Posted At: 13 March 2003 08:35
Posted To: Cocoon Dev List
Conversation: HTML-Generator - XPATH
Subject: HTML-Generator - XPATH


Hi,

i posted this mail to the cocoon user list, but no one could solve my 
problem there so I try it here again:

Yesterday we upated our webapp with the current changes of cocoon-2.1 
repository. I have a question concerning the HTML-Generator. The 
following sitemap-snippet matched in our previous version the body-tag 
of the google-site. This is not working anymore. Are there any changes 
concerning the xpath-expression?

<map:match pattern="**/google.html">
     <map:generate type="html" src="http://www.google.de">
             <map:parameter name="xpath" value="//body"/>
     </map:generate>
     <map:serialize/>
</map:match>

In the meantime we made a dirty solution by changing the 
xpath-expression to: "//*[contains(name(),'body')]".
This is working but we are looking for a better solution where we can 
use our previous statements. Any hints here?

Thanks
Harald



Mime
View raw message