Open the HelloXSLTService.xslfile and type in the following code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.
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>
Press the Validate File () button on the toolbar to ensure that the code
has no errors.
Right-click the HelloXSLTransformationnode and choose Clean and Build from the drop-down menu to build the project. You should see the BUILD SUCCESSFULmessage after building the project completes.