Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: David Carlisle <davidc@--------->
To:
Date: 12/5/2006 1:55:00 PM
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" />


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent