xsl-list
[Top] [All Lists]

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

2006-12-05 07:15:10
On Tue, 05 Dec 2006 06:44:41 -0700, Mark Wilson <mark(_at_)knihtisk(_dot_)org> 
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--