[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:call-template , strange behaviour
Mukul,
In your stylesheet, your <a/> and <b/> elements have namespace nodes on them for the "temp" namespace, which they have inherited from the xsl:stylesheet element. Since you have not asked that this namespace be excluded, the processor can only assume that they are part of the data it should output. Note that neither <a/> nor <b/> is *in* the temp namespace, so it is probably not accurate (or at least it's misleading) to say they are "associated with it", even though in the result the namespace declarations for temp must appear on <a/> and <b/> -- since there's no other place where temp can be declared. Since temp is not actually used, it should be possible to suppress it by using the exclude-namespace-prefixes attribute on xsl:stylesheet. But it will be suppressed on both <a/> and <b/> -- the fact that <b/> is generated by a template named "temp:test" is a red herring. The behavior isn't strange at all -- what would be strange would be if <b/> were placed in a different namespace from the one given it by the stylesheet (the null namespace), just because of the name of the template that adds it to the result. Cheers, Wendell At 12:01 AM 6/6/2005, you wrote: I have written this stylesheet - ====================================================================== 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 ======================================================================
|
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
|