[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

problem with namespaces in xslt

Subject: problem with namespaces in xslt
From: "Kaila Kaarle" <Kaarle.Kaila@xxxxxxx>
Date: Mon, 1 Aug 2005 16:15:38 +0300
saxon dom cannot be updated
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.