As Wendell pointed out; this is a more recent 'top ten' question.
I'm stuck trying to find a title for this question, that would
mean anything to a reader with this problem.
If you have been stuck with namespace processing, would you
suggest something please?
I can see that its difficult, especially when you have
no idea that namespaces are causing the problem.
The problem is compounded since with default templates
there is output.
Can't find root element?
Template not being instantiated?
....
what would you go looking for?
Suggestions most welcome.
Regards DaveP
www.dpawson.co.uk/xsl
-----Original Message-----
From: David Carlisle [mailto:davidc(_at_)nag(_dot_)co(_dot_)uk]
Sent: 17 March 2005 16:09
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Problem while Xpath-ing an excel XML
exported file
namespace FAQ number 1:
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" ...
...
<Worksheet
so that is Workbook and Worksheet in namespace
urn:schemas-microsoft-com:office:spreadsheet
and this
<xsl:for-each select="Workbook/Worksheet
selects so that is Workbook and Worksheet in no-namespace
so selects nothing in this case.
You want
xmlns:x="urn:schemas-microsoft-com:office:spreadsheet" on
your xsl:stylseheet then
<xsl:for-each select="x:Workbook/x:Worksheet
etc so that you select elements from this namespace.
David
____________________________________________________________
____________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on
a proactive anti-virus service working around the clock,
around the globe, visit:
http://www.star.net.uk
____________________________________________________________
____________
--~---------------------------------------------------------
---------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--
DISCLAIMER:
NOTICE: The information contained in this email and any attachments is
confidential and may be privileged. If you are not the intended
recipient you should not use, disclose, distribute or copy any of the
content of it or of any attachment; you are requested to notify the
sender immediately of your receipt of the email and then to delete it
and any attachments from your system.
RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants. However, it
cannot accept any responsibility for any such which are transmitted.
We therefore recommend you scan all attachments.
Please note that the statements and views expressed in this email and
any attachments are those of the author and do not necessarily represent
those of RNIB.
RNIB Registered Charity Number: 226227
Website: http://www.rnib.org.uk
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--