xsl-list
[Top] [All Lists]

Re: How to Handle Attributes Content

2003-02-20 02:01:01
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



<Prev in Thread] Current Thread [Next in Thread>