cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <>
Subject source:write with empty path
Date Mon, 02 Dec 2002 23:11:23 GMT
Can someone with a cvs checkout of 2.1 dev checked out
since 9/27 confirm that <source:write> fails with no

specified?  I'm trying to confirm a problem before
submitting a bug report but have frozen my local cvs
until a launch 

later this week.

try the following to isolate the problem: 

1) create an xml file foo.xml in the same directory
with any sitemap.  The contents of foo.xml can be

<foo>test this</foo>

2) create a second file write.xml containing:

<source:write create="true"
<newFoo>We changed it</newFoo>
<othernode>well what do you know</othernode>

2) in that or a prior mounting sitemap define the
source writing transformer (if it isn't already). 

map:components/map:transformers add:

 <map:transformer     name="tofile"    
 <map:parameter name="serializer" value="xml"/>

3) Add the following pipeline fragment somewhere high
enough to override 
any more generic matchers like *.xml or **.xml you may

<map:match pattern="testWrite.xml">
  <map:generate src="write.xml"/>
  <map:transform type="tofile"/>
  <map:serialize type="xml"/>

4) Access http://localhost:8080/testWrite.xml (adjust
accordingly if you've done all this in a sub sitemap)

You should get an org.w3c.dom.DOMException related to
Hierarchy (if this is in fact a bug).

Thank you,


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message