Hi,
Is it possible to use xslt instead of decorators? What I want to do is to use Screen Widgets to produce xml documents and then use xslt instead of Decorator Screen Widgets to produce the decorated xhtml Thanks Peter Sparkes |
Peter Sparkes a écrit :
> Hi, > > Is it possible to use xslt instead of decorators? > > What I want to do is to use Screen Widgets to produce xml documents > and then use xslt instead of Decorator Screen Widgets to produce the > decorated xhtml > > Thanks > > Peter Sparkes > You can create a new view Handler to parse your xml file. See framework/webapp/src/org/ofbiz/webapp/view. I don't think it's possible to use xslt without create a new handler. Nicolas -- Nicolas MALIN Consultant Tél : 06.17.66.40.06 Site projet : http://www.neogia.org/ ------- Société LibrenBerry Tél : 02.48.02.56.12 Site : http://www.librenberry.net/ |
In reply to this post by Peter Sparkes
look at the fedex template.
applications\product\templates\shipment Peter Sparkes sent the following on 12/16/2008 4:47 AM: > Hi, > > Is it possible to use xslt instead of decorators? > > What I want to do is to use Screen Widgets to produce xml documents > and then use xslt instead of Decorator Screen Widgets to produce the > decorated xhtml > > Thanks > > Peter Sparkes > > |
In reply to this post by Malin Nicolas
Hello Nicolas,
Thanks for the advice. I am still learning ofbiz and will have a go at creating a xslt handler at a later date. As xslt is the standard way of transforming xml documents and decorating them , I am surprised that its not built into ofbiz Peter > Peter Sparkes a écrit : >> Hi, >> >> Is it possible to use xslt instead of decorators? >> >> What I want to do is to use Screen Widgets to produce xml documents >> and then use xslt instead of Decorator Screen Widgets to produce the >> decorated xhtml >> >> Thanks >> >> Peter Sparkes >> > Hello peter > > You can create a new view Handler to parse your xml file. See > framework/webapp/src/org/ofbiz/webapp/view. > > I don't think it's possible to use xslt without create a new handler. > > Nicolas > |
since ofbiz does not serve up XML for views there is no reason for XSLT.
however if you write an ftl that serves up XML, then you could add the libraries. here is one for tomcat you can probably modify for ofbiz. http://genomenews.free.fr/xalan.html Peter Sparkes sent the following on 12/17/2008 3:29 AM: > Hello Nicolas, > > Thanks for the advice. I am still learning ofbiz and will have a go at > creating a xslt handler at a later date. > > As xslt is the standard way of transforming xml documents and decorating > them , I am surprised that its not built into ofbiz > > Peter > >> Peter Sparkes a écrit : >>> Hi, >>> >>> Is it possible to use xslt instead of decorators? >>> >>> What I want to do is to use Screen Widgets to produce xml documents >>> and then use xslt instead of Decorator Screen Widgets to produce the >>> decorated xhtml >>> >>> Thanks >>> >>> Peter Sparkes >>> >> Hello peter >> >> You can create a new view Handler to parse your xml file. See >> framework/webapp/src/org/ofbiz/webapp/view. >> >> I don't think it's possible to use xslt without create a new handler. >> >> Nicolas >> > > > |
Administrator
|
In reply to this post by Peter Sparkes
We prefer to use FreeMarker for that. Look for "FreeMarker vs XSLT" in Google...
Jacques From: "Peter Sparkes" <[hidden email]> > Hello Nicolas, > > Thanks for the advice. I am still learning ofbiz and will have a go at creating a xslt handler at a later date. > > As xslt is the standard way of transforming xml documents and decorating them , I am surprised that its not built into ofbiz > > Peter > >> Peter Sparkes a écrit : >>> Hi, >>> >>> Is it possible to use xslt instead of decorators? >>> >>> What I want to do is to use Screen Widgets to produce xml documents and then use xslt instead of Decorator Screen Widgets to >>> produce the decorated xhtml >>> >>> Thanks >>> >>> Peter Sparkes >>> >> Hello peter >> >> You can create a new view Handler to parse your xml file. See framework/webapp/src/org/ofbiz/webapp/view. >> >> I don't think it's possible to use xslt without create a new handler. >> >> Nicolas >> > |
In reply to this post by BJ Freeman
Thanks for link
Peter > since ofbiz does not serve up XML for views there is no reason for XSLT. > however if you write an ftl that serves up XML, then you could add the > libraries. > here is one for tomcat you can probably modify for ofbiz. > http://genomenews.free.fr/xalan.html > > Peter Sparkes sent the following on 12/17/2008 3:29 AM: > >> Hello Nicolas, >> >> Thanks for the advice. I am still learning ofbiz and will have a go at >> creating a xslt handler at a later date. >> >> As xslt is the standard way of transforming xml documents and decorating >> them , I am surprised that its not built into ofbiz >> >> Peter >> >> >>> Peter Sparkes a écrit : >>> >>>> Hi, >>>> >>>> Is it possible to use xslt instead of decorators? >>>> >>>> What I want to do is to use Screen Widgets to produce xml documents >>>> and then use xslt instead of Decorator Screen Widgets to produce the >>>> decorated xhtml >>>> >>>> Thanks >>>> >>>> Peter Sparkes >>>> >>>> >>> Hello peter >>> >>> You can create a new view Handler to parse your xml file. See >>> framework/webapp/src/org/ofbiz/webapp/view. >>> >>> I don't think it's possible to use xslt without create a new handler. >>> >>> Nicolas >>> >>> |
In reply to this post by Jacques Le Roux
Thanks Jacques,
I am new to ofbiz and had not looked at FreeMarker. Had a look last night and will use FreeMarker. Thanks again Peter > We prefer to use FreeMarker for that. Look for "FreeMarker vs XSLT" > in Google... > > Jacques > > From: "Peter Sparkes" <[hidden email]> >> Hello Nicolas, >> >> Thanks for the advice. I am still learning ofbiz and will have a go >> at creating a xslt handler at a later date. >> >> As xslt is the standard way of transforming xml documents and >> decorating them , I am surprised that its not built into ofbiz >> >> Peter >> >>> Peter Sparkes a écrit : >>>> Hi, >>>> >>>> Is it possible to use xslt instead of decorators? >>>> >>>> What I want to do is to use Screen Widgets to produce xml >>>> documents and then use xslt instead of Decorator Screen Widgets to >>>> produce the decorated xhtml >>>> >>>> Thanks >>>> >>>> Peter Sparkes >>>> >>> Hello peter >>> >>> You can create a new view Handler to parse your xml file. See >>> framework/webapp/src/org/ofbiz/webapp/view. >>> >>> I don't think it's possible to use xslt without create a new handler. >>> >>> Nicolas >>> >> > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.9.19/1853 - Release Date: 17/12/2008 08:31 > |
Free forum by Nabble | Edit this page |