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: document.write & copy-of


Jeni Tennison wrote:
> <xsl:template match="*" mode="serialise">
>   <xsl:text />&lt;<xsl:value-of select="name()" />
>   <xsl:for-each select="@*">
>     <xsl:text> </xsl:text>
>     <xsl:value-of select="name()" />
>     <xsl:text />="<xsl:value-of select="." />"<xsl:text />
>   </xsl:for-each>
>   <xsl:text>&gt;</xsl:text>
>   <xsl:apply-templates mode="serialise" />
>   <xsl:text />&lt;/<xsl:value-of select="name()" />&gt;<xsl:text />
> </xsl:template>

Don't know why I didn't think of that.
But what is the purpose of empty <xsl:text /> instructions?

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at         My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/


 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]