[Home] [By Thread] [By Date] [Recent Entries]
Jimenez, Luis wrote:
The XSL 1.0 not working. Sending the XML file, XSL file and the desired output The </pagina> is missing here and below: </picking> </pd> Assuming you have well-formed XML with a pagina element then you can solve that as follows: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output indent="yes"/> <xsl:strip-space elements="*"/> <xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template> <xsl:template match="spoolpd">
<xsl:copy>
<xsl:apply-templates select="@* | pd[@marca = 'REAL']"/>
</xsl:copy>
</xsl:template> <xsl:template match="pd">
<xsl:copy>
<xsl:apply-templates select="@* | frmbd"/>
</xsl:copy>
</xsl:template> <xsl:template match="blqcab">
<xsl:copy>
<xsl:apply-templates
select="@* |
node() |parent::pbd1/parent::frmbd/following-sibling::picking[1]/pagina/cabecera/infocaja"/>
</xsl:copy>
</xsl:template></xsl:stylesheet> -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|

Cart



