Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] XML with Default Namespace [Thread Next] RE: [xsl] XML with Default NamespaceTo: Date: 8/2/2007 8:18:00 AM > Ok, so I do not understand what the default namespace is if I have: > > <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"> > > .... > > And then, the next element under this is: > <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> Well the default namespace for Workbook is urn:schemas-microsoft-com:office:spreadsheet, and the default namespace for DocumentProperties is urn:schemas-microsoft-com:office:office > > So is my xpath: > > select="/Workbook/DocmentProperties" > > Or: > > select="/xmlns:Workbook/xmlns:DocmentProperties" > Neither. You're missing the point. The path is /x:Workbook/y:DocumentProperties, where x is bound to urn:schemas-microsoft-com:office:spreadsheet, and y is bound to urn:schemas-microsoft-com:office:office Michael Kay http://www.saxonica.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
