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

Re: XML with Default Namespace

Subject: Re: XML with Default Namespace
From: "Karl Stubsjoen" <kstubs@xxxxxxxxx>
Date: Wed, 1 Aug 2007 22:12:43 -0700
Re:  XML with Default Namespace
Ok, some progress, but I can't seem to get rid of the attribute, xmlns:o.
In my identity copy, I am trying match on attribute o, like this:

	<xsl:template match="@o" mode="transform"/>

My node match looks like this:

<xsl:template match="@* | node()" mode="transform">
<xsl:copy>
<xsl:apply-templates select="@*" mode="transform"/>
<xsl:apply-templates select="node()" mode="transform"/>
</xsl:copy>
</xsl:template>

My XSL decleration includes the exclude prefix for "o", but thinking
that that is out of context, this just excludes prefixes that the xsl
document would produce, correct?  Not prefixes associated with the
source xml.

Wow!  I feel like such a beginner when it comes to namespaces!

On 8/1/07, Karl Stubsjoen <kstubs@xxxxxxxxx> wrote:
> 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">
>
> So is my xpath:
>
> select="/Workbook/DocmentProperties"
>
> Or:
>
> select="/xmlns:Workbook/xmlns:DocmentProperties"
>
> Thanks.

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.