Index Changes

Difference between version and version     

Back to Understanding XSLT Designer, or Understanding XSLT Designer Info


At line 5 changed 1 line.
!!! XSLT Designer Quick Start Guide
!!! Understanding the XSLT Designer
At line 7 changed 1 line.
The list below comprises the topics covered in the__ XSLT Designer Quick Start Guide__:
The list below comprises the topics covered in __Understanding the XSLT Designer__:
At line 13 removed 1 line.
* Creating an XSL Stylesheet\\
At line 19 changed 1 line.
In this tutorial you become acquainted with the XSLT Designer included in NetBeans IDE 6.0. The XSLT Designer is used to develop, deploy and test XSL Transformation Services.
In this tutorial you become acquainted with the XSLT Designer included in NetBeans IDE 6.1. The XSLT Designer is used to develop, deploy and test XSL Transformation Services.
At line 35 changed 1 line.
Before you begin, download and install the following software on your computer: [http://download.netbeans.org/netbeans/6.0/final/]. Select the Download All option. The Download All option includes SOA Pack and GlassFish V2 Application Server, which are required for this tutorial.
Before you begin, download and install the following software on your computer: [http://www.netbeans.org/downloads/index.html]. Click the __Download__ button under the __All__ column. This option includes all the features and servers required for this tutorial.
At line 39 changed 1 line.
This tutorial requires that the GlassFish V2 Application Server, which includes the JBI runtime, has been installed with NetBeans IDE 6.0. Perform the following steps to confirm that GlassFish V2 Application Server is installed with NetBeans IDE 6.0 and that the JBI runtime contains the XSLT Service Engine and Transform Shared Library required for this tutorial:
This tutorial requires that the GlassFish V2 Application Server, which includes the JBI runtime, has been installed with NetBeans IDE 6.1. Perform the following steps to confirm that GlassFish V2 Application Server is installed with NetBeans IDE 6.1 and that the JBI runtime contains the XSLT Service Engine and Transform Shared Library required for this tutorial:
At line 44 changed 2 lines.
# After the server is started, expand the {{GlassFish V2 > JBI}} node. Then expand both the {{Service Engines}} node and the {{Shared Libraries}} node to verify that the XSLT Service Engine and Transform Shared Library are installed.\\
[{Image src='appserverrunning.gif' width='' height='' align='left|center|right' }]
# After the server is started, expand the {{GlassFish V2 > JBI}} node. Then expand the {{Shared Libraries}} node to verify that {{sun-wsdl-ext-library}} is installed.\\
At line 47 added 1 line.
At line 54 changed 11 lines.
# From the IDE's main menu, choose File > New Project.
# Under Categories select {{SOA}}.
# Under Projects, select {{XSLT Module}}.
# Click Next.
[{Image src='newproject.gif' width='' height='' align='left|center|right' }]
# In the Project Name field, type {{HelloXSLTransformation}} .
# Modify the project location, or accept the default.
[{Image src='nameandlocation.gif' width='' height='' align='left|center|right' }]
# Click Finish.
# The Projects window now contains the {{HelloXSLTransformation}} project node.
[{Image src='projectcreated.gif' width='' height='' align='left|center|right' }]
# From the IDE's main menu, choose File > New Project.\\
# Under Categories select {{SOA}}.\\
# Under Projects, select {{XSLT Module}}.\\
# Click Next.\\
# In the Project Name field, type {{HelloXSLTransformation}} .\\
# Modify the project location, or accept the default.\\[{Image src='nameandlocation.gif' width='' height='' align='left|center|right' }]
# Click Finish.\\
# The Projects window now contains the {{HelloXSLTransformation}} project node.\\[{Image src='projectcreated.gif' width='' height='' align='left|center|right' }]
At line 74 changed 1 line.
# Click Finish. A new node—{{HelloXSLTIncoming.xsd}} —appears under the {{Transformation Files}} node in your {{HelloXSLTransformation}} project and the new Schema opens in the XML Schema Editor.[XML Schema Added to the Project|figures/schemaview.gif]
# Click Finish. A new node—{{HelloXSLTIncoming.xsd}} —appears under the {{Transformation Files}} node in your {{HelloXSLTransformation}} project and the new Schema opens in the XML Schema Editor.[{Image src='schemaview.gif' width='' height='' align='left|center|right' }]
At line 79 changed 1 line.
# Click OK.[New Schema Element Dialog|figures/newschemaelement.gif]
# Click OK.[{Image src='newschemaelement.gif' width='' height='' align='left|center|right' }]
At line 113 changed 1 line.
You should see two Schema files listed under the {{Transformation Files}} node in your {{HelloXSLTransformation}} project.[Two Schema Files in the Project|figures/twoschemas.gif]
You should see two Schema files listed under the {{Transformation Files}} node in your {{HelloXSLTransformation}} project.[{Image src='twoschemas.gif' width='' height='' align='left|center|right' }]
At line 112 added 1 line.
At line 123 changed 1 line.
# Select {{By File > HelloXSLTransformation > src/HelloXSLTIncoming.xsd > Elements > name}} and click OK.[Select the Name Element|figures/selectname.gif]
# Select {{By File > HelloXSLTransformation > src/HelloXSLTIncoming.xsd > Elements > name}} and click OK.[{Image src='selectname.gif' width='' height='' align='left|center|right' }]
At line 125 changed 1 line.
# Select {{By File > HelloXSLTransformation > src/HelloXSLTOutgoing.xsd > Elements > greeting}} and click OK.[Select the Greeting Element|figures/selectgreeting.gif]
# Select {{By File > HelloXSLTransformation > src/HelloXSLTOutgoing.xsd > Elements > greeting}} and click OK.[{Image src='selectgreeting.gif' width='' height='' align='left|center|right' }]
At line 129 changed 1 line.
You should see the {{HelloXSLTWSDL.wsdl}} file listed under the {{Transformation Files}} node in your {{HelloXSLTransformation}} project.[A WSDL File in the Projects Window|figures/wsdl.gif]
You should see the {{HelloXSLTWSDL.wsdl}} file listed under the {{Transformation Files}} node in your {{HelloXSLTransformation}} project.[{Image src='wsdl.gif' width='' height='' align='left|center|right' }]
At line 131 removed 1 line.
!!!Creating an XSL Stylesheet
At line 133 removed 28 lines.
An XSL stylesheet is an XML file that contains instructions about transforming the incoming message into the outgoing message.
!To create an XSL stylesheet:
# In the Projects window, right-click the {{HelloXSLTransformation > Transformation Files}} node and choose New > XSLT Service.
# Under Service Type, select Request-Reply Service. Click Next.
# Notice that {{HelloXSLTWSDL.wsdl}} is selected in the Web Service drop-down list. Click Next.
# In the XSL File field, type {{HelloXSLTService}}. Click Finish.
The {{HelloXSLTService.xsl}} node appears under the {{Transformation Files}} node in your {{HelloXSLTransformation}} project. The {{HelloXSLTService.xsl}} file opens in the Design view of the XSL Transformation Editor. The Design view Palette opens on the right.[XSL Transformation editor|figures/mapper-small.gif]
# In the Palette, expand the String section and drag the concat function onto the Transformations pane of the XSLT Design view.[The Concat Function|figures/concat.gif]
# In the Palette, under the String section, select the string-literal function and drag it to the Transformations pane. Double-click the return string field to make it editable and type {{Hello}} (with a space at the end).
# Drag the handle on the right side of the Hello field to the handle on the left side of the string1 row in the Concat function. An arrow snaps in place to indicate the flow.[Connecting String-Literal and Concat|figures/stringtoconcat.gif]
# Select the name element in the Source tree pane on the left, and drag the handle to the string2 row in the Concat function.
# Drag the return string handle to the greeting element in the Destination tree pane on the right. The Design view should now resemble the following:[Final Mapping|figures/finalmapping.gif]
# Click the Source button on the Design view toolbar. You should see the following code:
{{{
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:ns1="http://xml.netbeans.org/schema/HelloXSLTIncoming"
xmlns:ns="http://xml.netbeans.org/schema/HelloXSLTOutgoing">
<xsl:template match="/">
<xsl:element name="ns:greeting">
<xsl:value-of select="concat('Hello ', /ns1:name)"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
}}}
# Click the Save All button on the toolbar.
At line 172 changed 1 line.
# The Projects window now contains the {{HelloXSLTCAP}} project node.[Composite Application Project Added to the Projects Window|figures/capadded.gif]
# The Projects window now contains the {{HelloXSLTCAP}} project node.[{Image src='capadded.gif' width='' height='' align='left|center|right' }]
At line 145 added 1 line.
At line 176 changed 2 lines.
# Select the HelloXSLTransformation project and click Add Project Jar Files.[Add a JBI Module|figures/addjbi.gif]
# To verify that the JBI module has been added, expand {{HelloXSLTCAP > JBI Modules}}.[JBI Module Added|figures/jbiadded.gif]
# Select the HelloXSLTransformation project and click Add Project Jar Files.[{Image src='addjbi.gif' width='' height='' align='left|center|right' }]
At line 150 added 3 lines.
# To verify that the JBI module has been added, expand {{HelloXSLTCAP > JBI Modules}}.[{Image src='jbiadded.gif' width='' height='' align='left|center|right' }]
At line 183 changed 1 line.
# To verify that the project has been deployed, expand {{Sun Java System Application Server 9 > JBI > Service Assemblies}} in the Runtime window. You should see the {{HelloXSLTCAP}} node.[Service Assembly|figures/serviceassembly.gif]
# To verify that the project has been deployed, expand {{Sun Java System Application Server 9 > JBI > Service Assemblies}} in the Runtime window. You should see the {{HelloXSLTCAP}} node.[{Image src='serviceassembly.gif' width='' height='' align='left|center|right' }]
At line 159 added 1 line.
At line 197 changed 1 line.
# The {{JohnSmith}} node appears under {{HelloXSLTCAP > Test}} and the input message file—{{Input.xml}} —opens in the editor.[Input Message|figures/input.gif]
# The {{JohnSmith}} node appears under {{HelloXSLTCAP > Test}} and the input message file—{{Input.xml}} —opens in the editor.[{Image src='input.gif' width='' height='' align='left|center|right' }]
At line 227 changed 2 lines.
# Right-click the {{JohnSmith}} node and select Run. Notice that the test fails and the following dialog box appears:[Overwrite Dialog|figures/overwrite.gif]
# Click Yes. Notice that the failed test node appears below the {{Output}} node.[Failed Test Node|figures/failednode.gif]
# Right-click the {{JohnSmith}} node and select Run. Notice that the test fails and the following dialog box appears:[{Image src='overwrite.gif' width='' height='' align='left|center|right' }]
# Click Yes. Notice that the failed test node appears below the {{Output}} node.[{Image src='failednode.gif' width='' height='' align='left|center|right' }]
At line 254 changed 1 line.
# Run the test again. The test is marked as passed.[Test Passed|figures/pass.gif]
# Run the test again. The test is marked as passed.[{Image src='pass.gif' width='' height='' align='left|center|right' }]

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-16) was last changed on 09-Dec-08 16:09 PM, -0800 by MMoussa