core-jgi/utils_dev/trl/trl_Mandatory.xsl

30 lines
872 B
XML
Raw Normal View History

2006-11-17 10:15:04 +07:00
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- This sample xslt is for transform an xml validated by adempiereTrl.dtd -->
<!-- to destination xml, which removed optional attributes trl, orginal -->
<!-- Author: Bui Chi Trung -->
<!-- get whole adempiereTrl element -->
<xsl:template match="/adempiereTrl">
<adempiereTrl table="{@table}" language="{@language}">
<xsl:apply-templates/>
</adempiereTrl>
</xsl:template>
<!-- get row element without trl attribute -->
<xsl:template match="row">
<row id="{@id}">
<xsl:apply-templates select="value"/>
</row>
</xsl:template>
<!-- get value element without original attribute-->
<xsl:template match="value">
<value column="{@column}">
<xsl:value-of select="."/>
</value>
</xsl:template>
</xsl:stylesheet>