cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danny Bols" <db...@osirion.be>
Subject RE: Reusing objects, queries, ect for piping through multiple XSLT transformations
Date Thu, 29 Jan 2004 12:44:36 GMT
          Session session = request.getSession();
          session.setAttribute("par1", "hello world");

          String myString = session.getAttribute("par1");
          <xsp:expr>myString != null ? myString : "session var not
found"</xsp:expr>

> -----Original Message-----
> From: robby.pelssers@vodafone.com [mailto:robby.pelssers@vodafone.com]
> Sent: donderdag 29 januari 2004 13:14
> To: users@cocoon.apache.org
> Subject: Reusing objects, queries, ect for piping through multiple XSLT
> transformations
>
>
> Hi,
>
> i'm troubled with following problem.
>
> At the moment, i write .xsp's which generate an  XML-tree using
> java-objects
> or SQL for retreiving the correct data to put between the tags.
> This is then transformed to HTML and most of the time, i generate tables
> holding the data retreived.  I also write .xsp's that generate XML-trees
> which are used as input to be transformed to SVG.  The problem is
> that when
> i want to present the same data in HTML-table format and SVG-piechart
> format, i have to write 2 xsp's for generating the same
> data in another XML-structure....
>
> In the first XSP, i write an embed tag
>           <form:svg width="520" height="300">
>             <form:url>
>
> <xen:page-url>"app/cfm/svg/pendingontarget.svg"</xen:page-url>
>             </form:url>
>           </form:svg>
> which is ultimately transformed to :
> <embed type="image/svg-xml" name="SVGEmbed"
> src="http://networkportal:81/vodafone/app/cfm/svg/pendingontarget.svg"
> width="650" height="400"></embed>
>
> Is it possible to generate  2 XML-structures in one XSP and both
> structures
> to 2 different stylesheets (xsl).... ??? And even better that i reference
> the generated SVG in my XML-tree that will be transformed to HTML.
>
>
> Regards,
>
> Robby Pelssers
> + 31 654670255
>
> ---------------------------------------------------------------------
> 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