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

How do templates get invoked for elements decorated wi

Subject: How do templates get invoked for elements decorated with namespaces?
From: "Mark Wilson" <mark@xxxxxxxxxxxx>
Date: Tue, 5 Dec 2006 08:44:41 -0500
 How do templates get invoked for elements decorated wi
Hi,

I have no idea how to even look this problem up in the archives. If the
answer is there, I apologize.

I find that a template such as

<xsl:template match="/Workbook"> 

         <xsl:apply-templates select="DocumentProperties" />

 </xsl:template>

is invoked when the element name is undecorated with a namespace attribute:

 <Workbook>
.
</Workbook>

but is not invoked when the namespace is present:

<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">

...

</Workbook>

How does the template have to be changed to be invoked for the second case?

Thanks,

Mark

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.