This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Generating namespace declarations in output documents: How?


Jarno.Elovirta@nokia.com wrote:

>>
>>So what *will* result in a namespace declaration being output?
>>
> 
> Let the XSLT engine worry about outputing the namespace declarations - just
> do
> 
> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>                xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";
>                version="1.0">
>    <xsl:template match="foo">
>      <xsl:element name="bar">
>      <xsl:attribute name="xsi:noNamespaceSchemaLocation">
>        [somewhere]
>      </xsl:attribute>
>      </xsl:element>
>      <xsl:apply-templates/>
>    </xsl:template>
> </xsl:transform>

Hey, it works! Thanks! I knew I was making it more complicated than
it had to be.

--D


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]