xsl-list
[Top] [All Lists]

RE: Re: Maintaining Heirarchy and using Recursion to write an XSL

2003-06-24 22:38:21
Hi,

I don't know the number of <HSDataContainerType> tags i could 
inside one
another.  I am trying to display the output (HTML) thru my XSL like:

DataContainer_1
      integerField_1
      decimalField_1
      dateField_1
      DataContainer_1_1
              textField_1_1
              integerField_1_1
              DataContainer_1_1_1
                      textField_1_1_1
                      integerField_1_1_1

  <xsl:template match="HSContract">
    <html>
      <head>
        <title/>
      </head>
      <body>
        <xsl:apply-templates select="*"/>
      </body>
    </html>
  </xsl:template>
  <xsl:template match="HSDataContainerType">
    <div>
      <xsl:value-of select="@name"/>
    </div>
    <div style="margin-left: 4em;">
      <xsl:apply-templates select="*"/>
    </div>
  </xsl:template>
  <xsl:template match="*">
    <div>
      <xsl:value-of select="@name"/>
    </div>
  </xsl:template>

Cheers,

Jarno - SITD: Laughingstock

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



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