Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] XML with Default Namespace

From: "Karl Stubsjoen" <kstubs@--------->
To:
Date: 8/1/2007 5:04:00 AM
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]


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