Re: getText on XSLT transformation on an Action

2011-06-20 Thread Josep María Formentí Serra
; > would prefer otheer solution...if possible. > > > Sent via BlackBerry from T-Mobile > > > > > > -Original Message- > > > From: Chris Pratt > > > Date: Thu, 16 Jun 2011 22:24:33 > > > To: Struts Users Mailing List > > > Repl

Re: getText on XSLT transformation on an Action

2011-06-17 Thread JOSE L MARTINEZ-AVIAL
2011 22:24:33 > > To: Struts Users Mailing List > > Reply-To: "Struts Users Mailing List" > > Subject: Re: getText on XSLT transformation on an Action > > > > There's no reason the XSL should be dynamic. The XML is typically the > > dynamic part w

Re: getText on XSLT transformation on an Action

2011-06-17 Thread Chris Pratt
tt > Date: Thu, 16 Jun 2011 22:24:33 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: Re: getText on XSLT transformation on an Action > > There's no reason the XSL should be dynamic. The XML is typically the > dynamic part with

Re: getText on XSLT transformation on an Action

2011-06-17 Thread Maurizio Cucchiara
Berry from T-Mobile > > -Original Message- > From: Chris Pratt > Date: Thu, 16 Jun 2011 22:24:33 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: Re: getText on XSLT transformation on an Action > > There's no reaso

Re: getText on XSLT transformation on an Action

2011-06-17 Thread jlmagc
List" Subject: Re: getText on XSLT transformation on an Action There's no reason the XSL should be dynamic. The XML is typically the dynamic part with the XSL being static (so that it can be parsed and cached for efficiency). Why not include a section in the XML with the replace

Re: getText on XSLT transformation on an Action

2011-06-16 Thread Chris Pratt
There's no reason the XSL should be dynamic. The XML is typically the dynamic part with the XSL being static (so that it can be parsed and cached for efficiency). Why not include a section in the XML with the replacement text, then reference the strings using XPath? (*Chris*) On Thu, Jun 16, 2

Re: getText on XSLT transformation on an Action

2011-06-16 Thread Miguel
Yes, if you want this, you need to create the XSLT on the fly, You can use freemarker to achieve this. substituying the placeholders with the appropiate text. You can use even apache commons StringUtils if you only want to susbtitute placeholders with fixed text. Cheers, Si quieres ser más positi

Re: getText on XSLT transformation on an Action

2011-06-16 Thread JOSE L MARTINEZ-AVIAL
could you expand that? do you mean to create the XSLT on the fly? 2011/6/16 Maurizio Cucchiara > The first solution I thought is: a template engine. > Currently your xslt file is static, you should consider to make dynamic in > order to include dynamic content. > > Maurizio Cucchiara > > Il gior

Re: getText on XSLT transformation on an Action

2011-06-16 Thread Maurizio Cucchiara
The first solution I thought is: a template engine. Currently your xslt file is static, you should consider to make dynamic in order to include dynamic content. Maurizio Cucchiara Il giorno 16/giu/2011 19.37, "JOSE L MARTINEZ-AVIAL" ha scritto: > Hi, > I'm using Struts 2.1.8.1. I have an action

getText on XSLT transformation on an Action

2011-06-16 Thread JOSE L MARTINEZ-AVIAL
Hi, I'm using Struts 2.1.8.1. I have an action that retrieves some XML data from a webservice, and transform it to HTML using XSLT. The transformation is done in the action, and the output is returned as a stream and sent to the client. It works fine, but now I need to write some labels that depe