xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] XML with Default Namespace


Subject: [xsl] XML with Default Namespace
From: "Karl Stubsjoen" <kstubs@xxxxxxxxx>
Date: Tue, 31 Jul 2007 22:02:59 -0700

I'm stuck, I'm trying to write XPATH against an Excel worksheet
converted to XML, I'm actually trying to transform it into clean and
nice xml, but darnit, the default namespace is throwing me off!

I'm getting an error from XpathMania which says
"Document has a default namespace"

When I add the default namespace, then my xpath queries no longer work.

So the XML looks like this:

<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:o="urn:schemas-microsoft-com:office:office"
 xmlns:x="urn:schemas-microsoft-com:office:excel"
 xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:html="http://www.w3.org/TR/REC-html40">
 <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
  <Author>kstubsj</Author>
  <LastAuthor>Network Services</LastAuthor>
  <LastPrinted>2005-07-18T14:28:19Z</LastPrinted>
  <Created>2004-09-15T18:47:44Z</Created>
  <LastSaved>2007-02-06T18:54:17Z</LastSaved>
  <Company>ADE</Company>
  <Version>11.8132</Version>
 </DocumentProperties>
 <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
  <WindowHeight>11220</WindowHeight>
  <WindowWidth>14865</WindowWidth>
  <WindowTopX>1440</WindowTopX>
  <WindowTopY>330</WindowTopY>
  <ActiveSheet>1</ActiveSheet>
  <ProtectStructure>False</ProtectStructure>
  <ProtectWindows>False</ProtectWindows>
 </ExcelWorkbook>
 <Styles>
  <Style ss:ID="Default" ss:Name="Normal">
   <Alignment ss:Vertical="Bottom"/>
   <Borders/>
   <Font/>
   <Interior/>
   <NumberFormat/>
   <Protection/>
  </Style>
  <Style ss:ID="s21" ss:Name="Hyperlink">
   <Font ss:Color="#FFFFFF"/>
  </Style>
  <Style ss:ID="s22" ss:Name="migrated_on">
   <Alignment ss:Horizontal="Center" ss:Vertical="Top" ss:Rotate="90"/>
   <Borders>
    <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"
     ss:Color="#C0C0C0"/>
    <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"
     ss:Color="#C0C0C0"/>
    <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"
     ss:Color="#C0C0C0"/>
    <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"
     ss:Color="#C0C0C0"/>
   </Borders>
   <Font x:Family="Swiss" ss:Size="8"/>
   <Interior ss:Color="#FFFFCC" ss:Pattern="Solid"/>
   <NumberFormat ss:Format="[$-409]m/d/yy\ h:mm\ AM/PM;@"/>
   <Protection/>
  </Style>

.... [cut]


Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor