Learn how XSLT/XQuery back-mapping works and see how it can be used to speed up your XSLT and XQuery development and ...
Back-mapping in Altova XMLSpy allows you to transform XML data using XSLT or XQuery and view how changes in the output affect the input XML. Here’s how to perform back-mapping in XMLSpy:
For XSLT:
File
> New
> XSLT
.Example XSLT:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/books">
<html>
<body>
<h1>Book List</h1>
<ul>
<xsl:for-each select="book">
<li>
<strong><xsl:value-of select="title"/></strong> by <xsl:value-of select="author"/> -
<em><xsl:value-of select="price"/></em>
</li>
</xsl:for-each>
</ul>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
For XQuery:
File
> New
> XQuery
.Transformation
menu.XSLT
or XQuery
, depending on which transformation method you are using.Transform
button.View
menu and select Show Back-mapping
.Back-mapping in Altova XMLSpy is a powerful way to visualize transformations and ensure that changes in the XML data are accurately reflected in the output. This makes it easier to debug and refine your XSLT or XQuery transformations. If you have any specific scenarios or questions, feel free to ask!