Subject: Re: [xsl] xsl:call-template , strange behaviour From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 06 Jun 2005 01:31:35 -0400 |
Cheers, Wendell
I have written this stylesheet -
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:temp="http://whatever" version="2.0">
<xsl:output method="xml" indent="yes" />
<xsl:template match="/"> <xsl:call-template name="test" /> <xsl:call-template name="temp:test" /> </xsl:template>
<xsl:template name="test"> <a/> </xsl:template>
<xsl:template name="temp:test"> <b/> </xsl:template>
</xsl:stylesheet>
With both Xalan-J 2.6 and Saxon 8.4, I get the output - <?xml version="1.0" encoding="utf-8"?> <a xmlns:temp="http://whatever"/> <b xmlns:temp="http://whatever"/>
I am curious, why element <a> gets associated with the namespace 'temp' ..?
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl:call-template , stran, Mukul Gandhi | Thread | Re: [xsl] xsl:call-template , stran, Mukul Gandhi |
Re: [xsl] Saxon for XMetal, Wendell Piez | Date | Re: [xsl] xsl:call-template , stran, Mukul Gandhi |
Month |