| | |
Template is not invoked.
![]() |
•
•
Join Date: Jan 2009
Posts: 3
Reputation:
Solved Threads: 0
Hi All,
I have a stylesheet with a identity transformation template and an element specific template. However, when I ran the below stlyesheet over a xml file, only identity transformation is invoked. My element specific template isn't.
There is a target namespace for the schema that defines the elements. I have specified in the stylesheet using xmlns attribute as below.
Can you please help.
Regards
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://mynamespace">
<xsl:output method="xml" encoding="utf-8"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
<xsl:template match="XYZ">
....
....
</xsl:template>
</xsl:stylesheet>
I have a stylesheet with a identity transformation template and an element specific template. However, when I ran the below stlyesheet over a xml file, only identity transformation is invoked. My element specific template isn't.
There is a target namespace for the schema that defines the elements. I have specified in the stylesheet using xmlns attribute as below.
Can you please help.
Regards
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://mynamespace">
<xsl:output method="xml" encoding="utf-8"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
<xsl:template match="XYZ">
....
....
</xsl:template>
</xsl:stylesheet>
![]() |
Similar Threads
- how can I run sitemap_gen.py to generate Google Sitemap on my hosting company server? (Python)
- Depth first traversal of a graph (C++)
- hi (C++)
- Problem stopping thread (I think) (Java)
- Sercurity Settings. (Java)
- desktop application concerning innerclass (Java)
- Win32 Resource Problem (C++)
Other Threads in the XML, XSLT and XPATH Forum
- Previous Thread: Adding New Element using XSLT
- Next Thread: Amount To Currency[Urgent]
| Thread Tools | Search this Thread |
api blogger blogging code delete development dynamiccreationofnvariablesinxslt error firstthreecharacterofastringrequired flipbook gdata google html include java link linspire linux microsoft news node openoffice overwrite precedence programming rss standards swf template transform variable w3c web xml xmlnotloading xmlonserver xsl xslt





