template m,atch doesnt match
Hello,
I have a problem with a template that doesnt match the desired node, in fact it doesn`t match any node.
This is my xml file:
<?xml version="1.0" encoding="UTF-8"?>
<d2LogicalModel xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:d2lm="D2LogicalModel" xmlns="http://datex2.eu/schema/1_0/1_0" modelBaseVersion="1.0" xsi:schemaLocation="http://datex2.eu/schema/1_0/1_0 C:\DOCUME~1\totres\Escritorio\d1d2transf\DATEXI~1\ DATEXIISchema_1_0_1_0\DATEXIISchema_1_0_1_0.xsd">
<exchange>
<supplierIdentification>
<country>es</country>
<nationalIdentifier>es001</nationalIdentifier>
</supplierIdentification>
</exchange>
</d2LogicalModel>
And this is my xsl file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:param name="filtro"/>
<!--
Template Principal
-->
<xsl:template match="/">
<xsl:apply-templates select="d2LogicalModel"/>
</xsl:template>
<!--
Template
-->
<xsl:template match="d2LogicalModel">
foo
</xsl:template>
</xsl:stylesheet>
The template "d2LogicalModel" is never executed, I think there is a problem with the xsl file headers but I can not figure out what I'm doing wrong.
Any ideas?
Thanks very much for the help
|