Re: [xsl] How to Handle Attributes Content

Subject: Re: [xsl] How to Handle Attributes Content
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Thu, 20 Feb 2003 11:01:01 +0200
Imrran Wahid wrote:

<xsl:template match="Content//*" mode="raw-req-inner">
  <xsl:copy>
    <br/>
    <xsl:for-each
select="ancestor::*[name()!='OutputMsg']">
      <xsl:value-of select="$str-indent" />
    </xsl:for-each>
    <xsl:text>&lt;</xsl:text>
    <xsl:value-of select="name()"/>
<xsl:for-each select="@*">
	<xsl:value-of select="$str-indent"/>
	<xsl:value-of select="name()"/>="<xsl:value-of select="."/>"
</xsl:for-each>

The challenge at hand is that my xml can also be in
attributes. How do I render the raw xml with
attributes and proper indentations? For instance my
xml is:

-- Oleg Tkachenko Multiconn Technologies, Israel


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



Current Thread