The following actions allow changing the structure of an XSLT stylesheet without changing the
results of running it in an XSLT transformation:
- - Opens a dialog that allows the user to specify the name of the new template
to be created. The possible changes to perform on the document can be previewed before
altering the document. After pressing OK the template is created and the selection is
replaced with a <xsl:call-template> instruction referring the newly
created template.
Note: The selection must contain well-formed elements only.
- - Creates a separate stylesheet and replaces the selection with a
<xsl:include> instruction referring the newly created
stylesheet.
Note: The selection must contain a well-formed top-level element.
- - Extracts the attributes from the selected element and represents each of
them with a <xsl:attribute> instruction. For example from the
following
element:
<person id="Big{test}Boss"/>
you
obtain:
<person>
<xsl:attribute name="id">
<xsl:text>Big</xsl:text>
<xsl:value-of select="test"/>
<xsl:text>Boss</xsl:text>
</xsl:attribute>
</person>
- - Renames the selected component. Specify the new name for the component and
the files affected by the modification as described for XML
Schema.