Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] How do templates get invoked for elements decorated with namespaces?


Subject: Re: [xsl] How do templates get invoked for elements decorated with namespaces?
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Tue, 05 Dec 2006 07:15:45 -0700

On Tue, 05 Dec 2006 06:44:41 -0700, Mark Wilson <mark@xxxxxxxxxxxx> wrote:

xmlns="urn:schemas-microsoft-com:office:spreadsheet"

Set the default namespace for the transformation file to the above namespace, or use an extension and then use this extension when referencing the Workbook//* elements.

e.g.

<xsl:stylesheet xmlns="urn:schemas-microsoft-com:office:spreadsheet" ... >

or

<xsl:stylesheet xmlns:foo="urn:schemas-microsoft-com:office:spreadsheet"
... >

would match,

<xsl:template match="Workspace">

and

<xsl:template match="foo:Workspace">

respectively.

--
/M:D

M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor