Index Changes

Difference between version and version     

Back to Understanding XSLT Designer, or Understanding XSLT Designer Info


At line 7 changed 1 line.
The list below comprises the topics covered in __ Understanding the XSLT Designer__:
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 57 changed 1 line.
# Click Next.\\[{Image src='newproject.gif' width='' height='' align='left|center|right' }]
# Click Next.\\
At line 133 removed 34 lines.
!!!Creating an XSL Stylesheet
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.[{Image src='mapper-small.gif' width='' height='' align='left|center|right' }]
# In the Palette, expand the String section and drag the concat function onto the Transformations pane of the XSLT Design view.[{Image src='concat.gif' width='' height='' align='left|center|right' }]
# 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.[{Image src='stringtoconcat.gif' width='' height='' align='left|center|right' }]
# 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:[{Image src='finalmapping.gif' width='' height='' align='left|center|right' }]
# 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.

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