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

Re: How do templates get invoked for elements decorate

Subject: Re: How do templates get invoked for elements decorated with namespaces?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 5 Dec 2006 13:54:51 GMT
Re:  How do templates get invoked for elements decorate
it's, a FFFFAQ:-)
google just took me here at random:-)

http://www.biglist.com/lists/xsl-list/archives/200111/msg00772.html

The namespace is part of the name, so adding a namespace in the source
is like changing the name by adding a letter A at the front, and the
changes needed in the xsl are teh same in both cases, you just need to
change the names in the patterns and xpaths to use the same name.

add
 xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
to your xsl:stylesheet then you can refer to elements in this namespace
 by

<xsl:template match="/ss:Workbook"> 

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

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.