Hi,
I need to bind a woody form to XML, but using namespaces. Unfortunately the XML binding example uses only default namespace.


I did fallowing binding:

<wb:context path="/layout:page-subtitle"
  xmlns:wb="http://apache.org/cocoon/woody/binding/1.0";
  xmlns:wd="http://apache.org/cocoon/woody/definition/1.0";
  xmlns:t="http://www.eti.pg.gda.pl/translate";
  xmlns:layout="http://www.eti.pg.gda.pl/layout";>

  <wb:repeater id="translations"
    parent-path="t:choose"
    row-path="t:text"
    unique-row-id="language"
    unique-path="@lang">

    <wb:on-bind>
      <wb:value id="language" path="@lang" />
      <wb:value id="title"    path="."  />
    </wb:on-bind>

    <wb:on-delete-row>
      <wb:delete-node />
    </wb:on-delete-row>

    <wb:on-insert-row>
      <wb:insert-node>
        <t:text lang=""/>
      </wb:insert-node>
    </wb:on-insert-row>

</wb:repeater>

</wb:context>


and the flowscript looks like this:


    //...
    document = loadDocument(dirTitlePath);
    form.showForm("/form_templates/dirtitle.xml.html");
    form.save(document);
    saveDocument(document, dirTitlePath);
    //...

where loadDocument() and saveDocument() is copied from Woody binding example.

And now the problem - the document is saved with proper prefixes, but the prefixes aren't bound (there are no namespace declarations xmlns:layout="...").

How can I fix it?

Regards,
Marcin Okraszewski


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to