Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: "Mark Wilson" <mark@------------>
To:
Date: 12/5/2006 1:45:00 PM
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


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