|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xsl:call-template , strange behaviour
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' ..?
Regards,
Mukul
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








