Good Day,
The following template works just fine -
I wonder if there is a way to eliminate the following -
and its closing part.
Regards,
Dan
The following template works just fine -
Code:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL]
xmlns:autn="[URL unfurl="true"]http://schemas.autonomy.com/aci/"[/URL]
xmlns:xs="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema"[/URL]
xmlns:dt="[URL unfurl="true"]http://xsltsl.org/date-time">[/URL]
<xsl:import href="stdlib.xsl"/>
<xsl:output method="xml"/>
<xsl:strip-space elements="*"/>
<xsl:template match="warning">
<warning><xsl:value-of select="."/></warning>
</xsl:template>
<xsl:template match="value">
<value count="{@count}"><xsl:value-of select="."/></value>
</xsl:template>
<xsl:template match="field">
<xsl:variable name="name" select="name"/>
<!-- Convert DOCUMENT/PI_PERSON -> PI_PERSON -->
<!-- 10 is the length of "DOCUMENT/" -->
<xsl:variable name="name2" select="substring($name,10)"/>
<xsl:variable name="total_values" select="total_values"/>
<result-row name="{$name2}" total="{$total_values}">
<xsl:apply-templates select="value"/>
</result-row>
</xsl:template>
<xsl:template match="/">
<parametric-results>
<status><xsl:value-of select="autnresponse/response" /></status>
<!-- Display multiple warnings if any -->
<xsl:apply-templates select="autnresponse/responsedata/warning"/>
<xsl:apply-templates select="autnresponse/responsedata/field"/>
</parametric-results>
</xsl:template>
</xsl:stylesheet>
I wonder if there is a way to eliminate the following -
Code:
<xsl:template match="/">
and its closing part.
Regards,
Dan