RE: [xsl] Aggregation

Subject: RE: [xsl] Aggregation
From: "Sullivan, Dan" <dsullivan@xxxxxxxxxxx>
Date: Fri, 7 Sep 2001 14:42:29 -0700
This does it, note it is very sensitive to format of file:

<xsl:stylesheet xmlns:xsl="";

  <xsl:output method="html"/>

  <xsl:template match="*" mode ='heading'>
    <td><xsl:value-of select="name()"/></td>

  <xsl:template match="st">
    <tr><td><xsl:value-of select="."/></td><xsl:apply-templates

  <xsl:template match="*[.='Y']">

  <xsl:template match="*">

  <xsl:template match="/">
      <body bgcolor="#FFFFFF">
        <table rules="all" border="1">
select='eas/ea[1]/*[1]/following-sibling::*' mode='heading'/>
        <xsl:apply-templates select="/eas/ea/st"/>



-----Original Message-----
From: Mulberry Technologies List Owner
Sent: Friday, September 07, 2001 5:10 PM
To: xsl-list
Subject: [xsl] Aggregation

>From: "Frenkel, Garry J." <garry.j.frenkel@xxxxxxx>
>To: "'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'"
>Subject: Help with aggregation
>Date: Fri, 7 Sep 2001 15:58:26 -0400
>Assuming the following xml fragment:
>The result needs to be an HTML Table like:
>State	Type1	Type2	Type3
>1	  X           X
>2       X
>In other words for every state designate if it supports any type as
>by the Y in the typex element.
>I've been fooling around with this for a couple of days and am about to
>up and use the DOM programatically.  I'd appreciate any help.

B. Tommie Usdin                        mailto:btusdin@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.        
17 West Jefferson Street                           Phone: 301/315-9631
Suite 207                                    Direct Line: 301/315-9634
Rockville, MD  20850                                 Fax: 301/315-8285
  Mulberry Technologies: A Consultancy Specializing in SGML and XML


 XSL-List info and archive:

 XSL-List info and archive:

Current Thread