cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josep Riudavets" <jriudave...@uoc.edu>
Subject Re: About Java and XML
Date Sat, 06 Dec 2003 15:03:56 GMT
Hi Tony ....

But I need some Java code for insterting it into a xsp.

Thanks ...


----- Original Message -----
From: "Tony Collen" <colle006@umn.edu>
To: <users@cocoon.apache.org>
Sent: Friday, December 05, 2003 8:03 PM
Subject: Re: About Java and XML


> Josep Riudavets wrote:
> > Hi all ... it is not a really cocoon question ... but I think you will
know how to solve it ....
> >
> > It's very very simple ... but I have been trying to solve it all day...
> >
> > I have and XML document, called "cad.xml"
> >
> > <cad>
> > ...
> > <nserie>34242342</nserie>
> > ...
> > </cad>
> >
> > I want to develop some java code, for inserting it into an xsp , in
order to capture the value of <nserie>, that is ... 34242342, and save it
into an string, for using it later into the same xsp
> >
> > I'm using IXSIL , IAIK and standart Java Apis...
> >
> > thanks all !!!!
> >
>
> Hrmm, I'm not familliar with IXSIL, but perhaps the following would work:
>
> <map:match pattern="cad2xsp.xml">
>    <map:generate type="file" src="cad.xml"/>
>    <map:transform src="cad2xsp.xsl"/>
>    <map:serialize type="xml"/>
> </map:match>
>
> <map:match pattern="cad.xsp">
>    <map:generate type="serverpages" src="cocoon:/cad2xsp.xml"/>
>    <map:transform src="..."/>
>    <map:serialize/>
> </map:match>
>
> Here, cad2xsp.xsl would have a skeleton of an xsp page, and select the
/cad/nserie element, and put
> it in your page where you need it.
>
> The other option would be to use the XMLFileModule, and point it at your
cad.xml file.  Then, you
> can use the input module to pass the parameter to your XSP page in the
sitemap.
>
>
> Regards,
>
> Tony
>
>
> ---------------------------------------------------------------------
> 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