,ch14.9433 Page 483 Monday, February 14, 2005 12:55 PM
The success forward specifies a path of simple/viewUserList.dox. The forward is pro
cessed by STXX and matched against patterns in the stxx pipelines.xml file. In this
example, the matching pattern defines a simple XML to XHTML transformation
using an XSL stylesheet:
Simple XSLT
Performs simple XSLT transformations
The first
param
element specifies the context relative path to the XSL stylesheet. The
value contains a substitution value retrieved from the wildcard matched path.
If the
{1}
notation looks familiar, that's because it's the same wild
card matching approach shown in Recipe 7.8. Wildcard mappings, as
well as the STXX pipeline approach, originated in the Apache Cocoon
project.
In this case, the transformation uses the xsl/viewUserList.xsl stylesheet shown in
Example 14 34.
Example 14 34. XSL stylesheet that renders the user list
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
View XSL
|
select="/stxx/applicationResources/key[@name= link.index ]"/>
|
Integrating Struts and XSLT | 483
This is the Title of the Book, eMatter Edition
Copyright 2005 O'Reilly & Associates, Inc. All rights reserved.
footer
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved
|