Understanding the XSLT Designer

ProcedureTo populate the XSL stylesheet:

  1. 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(&apos;Hello &apos;, /ns1:name)"/>

    </xsl:element>

    </xsl:template>

    </xsl:stylesheet>

  2. Press the Validate File (Validate the File) button on the toolbar to ensure that the code has no errors.

  3. 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.