Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] problem with namespaces in xslt

From: "Kaila Kaarle" <Kaarle.Kaila@------->
To:
Date: 8/1/2005 1:16:00 PM
hi,

I have an Excel 2003 XML file and an XSLT file to extract data from there.

I have stored a sample Excel file at
http://www.kk-software.fi/kalle/xslt/SDSFI1.xml

The result from the transformation should be like this:
http://www.kk-software.fi/kalle/xslt/output.xml

For saxon 6.5.4 I get the result using the stylesheet
http://www.kk-software.fi/kalle/xslt/fromExcel.xsl

but if I use xalan 2.6.0 I must use stylesheet
http://www.kk-software.fi/kalle/xslt/fromExcelx.xsl

They are identical except the namespaces. saxon requires namespaces like this
<xsl:template match="xls:Workbook">
and xalan requires that namespaces are removed from the stylesheet like this:
<xsl:template match="Worksheet">

-----------------------------
Can you help me? Which one is right and which one is wrong?

I need to make modifications to the DOM tree after the transformation and
saxon thows an exception
java.lang.UnsupportedOperationException: The Saxon DOM cannot be updated

so it seems I cannot use saxon but I would not like to have my stylesheet
wrong as it may give problems later.

regards
Kaarle


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent