[xsl] Problems with XSLT using msxml3.dll

Subject: [xsl] Problems with XSLT using msxml3.dll
From: "Eder de Oliveira" <eder@xxxxxxxxxxxxx>
Date: Wed, 14 Jan 2004 11:29:30 -0300
Hi people,

I have a Problems with XSLT using msxml3.dll.

I am trying transformation a XML using XSL and the library msxml3.dll.

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns="http://www.cnpq.br/2002/XSD/lattes";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<xsl:output method="xml" encoding="ISO-8859-1" indent="yes"/>

<xsl:template match="*[name()= 'CURRICULO-VITAE']">
<xsl:element name="CURRICULO-VITAE"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<xsl:attribute name="xsi:schemaLocation"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>http://www.cnpq.br/200
2/XSD/lattes C:\Lattes\Curriculo\LMPL\XSD\LMPLCurriculo.xsd</xsl:attribute>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>

<!-- Template para pegar os Elementos -->
<xsl:template match="*[name()!= 'CURRICULO-VITAE']">
<xsl:element name="{name()}">
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>

<xsl:template match="@*">
<xsl:if test=". !=''">
<xsl:attribute name="{name()}">
<xsl:value-of disable-output-escaping="yes" select="."/>
</xsl:attribute>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

This XSL document clear empty attributes, but with a library msxml3.dll.
The output XML document, result the transformation XSLT. There are in
finnaly of element one empty space.

Anyone, if problems are the library msxml3.dll, because the library
msxml4.dll don't have problem.

thanks
Eder



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread