You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jeff Pennal <je...@openroad.ca> on 2002/02/28 02:31:55 UTC
[ANNOUNCE] stxx - 0.9.0 Struts for transforming XML and XSL
stxx 0.9.0 - http://www.openroad.ca/opencode/
What's new
- Examples, examples, examples. The stxx-examples.war file no
longer sucks (well, it sucks less at least). There are now four
examples included that actually show how to use the features of stxx.
- You can chain XML documents that are generated by multiple Actions
together into one big XML document
- for the rest, see the CHANGES.TXT file for details
--------------------------------------------------------------------------------
Struts for transforming XML with XSL (stxx) is an extension of the
struts framework to support XML and XSL without changing the
functionality of struts .
stxx sit's on top of struts, extending it's existing functionality to
allow Action classes to return XML that will be transformed by an XSL file.
The idea of stxx is to remove the need to be use JSP and TagLibs for the
presentation layer of this framework. However, stxx does not force you
to go the XML/XSL route, both technologies will work side by side.
Adding XML/XSL support to struts is ALMOST as simple as adding the
following tags to your struts-config.xml file:
<action scope="request"
type="com.oroad.stxx.example.ExampleWelcomeAction"
path="/welcome">
<forward name="success">
<!--
the transform tags take the XML returned by the Action
and transform them. The transform tag used is determined
by matching the user agent against the name attribute
(or default if nothing matches)
-->
<transform path="/login.xsl" name="default"/>
<transform path="/login_netscape.xsl" name="Mozilla" />
<transform path="/login_msie.xsl" name="MSIE"
render="client" />
</forward>
</action>
stxx features:
- Enhances the <forward> tag in the struts-config.xml file to allow
one-many <transform> tags. These <transform> tags represent the XSL file
to be used depending on the user-agent of the browser accessing struts
- stxx automatically appends the ApplicationResources file as XML to the
Document object used by the enchanced ActionServlet class
- stxx also automatically appends the request parameters and attributes,
as well as ActionErrors as XML in the enchanced ActionServlet class
- stxx will allow you to push the job of transforming the XML to the browser
--
Jeff Pennal
Senior Software Developer
Openroad Communications
Vancouver, BC
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>