cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Heussen" <heus...@rheinland-online.com>
Subject AW: [Woody] Map key values after woody xml binding to values stored in database tables [solved]
Date Tue, 16 Dec 2003 09:48:01 GMT
With some tiny changes to the xslt that does the transformation to html I
have the solution.

Many thanks to you Marc! :-)

-----Ursprüngliche Nachricht-----
Von: Marc Portier
Gesendet: Dienstag, 16. Dezember 2003 09:13
An: users@cocoon.apache.org
Betreff: Re: [Woody] Map key values after woody xml binding to values
stored in database tables


Markus,

have a look into the documentation on the wiki via
http://wiki.cocoondev.org/Wiki.jsp?page=Woody

check out the possibilities of the wd:select-list here:
http://wiki.cocoondev.org/Wiki.jsp?page=WoodyDatatypeReference

that should get you going,
regards,
-marc=

Markus Heussen wrote:

> Hi Cocooners!
>
> I decided to use the woody form framwork for my application but I have one
> problem to solve.
>
> I bind a XML message to the form model like it is presented in the woody
> samples. But in my XML structure I have some keys that have to be mapped
to
> values stored in some database tables.
>
>
> My XML message to bind to the form:
> ...
> <v:Anrede Schlüssel="1"/>
> ...
>
>
> My form definition XML file:
> ...
> <wd:output id="anrede" required="true">
> 	<wd:label>Anrede</wd:label>
> 	<wd:datatype base="string"/>
> </wd:output>
> ...
>
>
> My binding XML file:
> ...
> <wb:value id="anrede" path="//v:Anrede/@Schlüssel"/>
> ...
>
>
> My form template XML file:
> ...
> <wt:widget-label id="anrede"/> : <wt:widget id="anrede"/>
> ...
>
>
> My result:
> ...
> Anrede : 1
> ...
>
>
> But "1" is the key for the value "Herr" which is stored in a rdbms. Can
> anyone show me an elegant way to get the values from the database?
>
> Thank's for your help!
>
> Markus
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>

--
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                http://blogs.cocoondev.org/mpo/
mpo@outerthought.org                              mpo@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message