SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
1.0 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:HtmlUtils="de.superx.util.HtmlUtils">
<xml:output method="xml" indent="yes"/>
<!--Upload einer SuperX-XML-exportierten Ergebnistabelle ins XML-Upload-Format (sx_upload_records.x) -->
<xsl:template match="/">
<rs>
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement/sqlerg/row">
<row>
<xsl:for-each select="col">
<xsl:variable name="colid">
<xsl:value-of select="@id" />
</xsl:variable>
<fld>
<xsl:attribute name="name"><xsl:call-template name="getColname" >
<xsl:with-param name="colid" select ="$colid" />
</xsl:call-template>
</xsl:attribute>
<xsl:value-of select="wert" />
</fld>
</xsl:for-each>
</row>
</xsl:for-each>
</rs>
</xsl:template>
<xsl:template name="getColname">
<xsl:param name="colid" />
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement/sqlerg/complete_headers/header" >
<xsl:if test="@id=$colid">
<xsl:value-of select="f_name" />
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>