xsl-list
[Top] [All Lists]

[xsl] Using XSLT 1.0 , I have tried using the Meunchian method solutions on

2006-12-19 13:39:50
Using XSLT 1.0 , I have tried using the Meunchian method solutions on
the list but I can not get the following to group by FilingType then
AgencyName:
 
<MonthlyTARList>
<FilingType>Rulemaking Hearings</FilingType>
<AgencyName>Agriculture</AgencyName>
<Filing>0080-06-14 Pest Control Operators</Filing>
<Link>http://www.tn.gov/sos/rules_hearingnotices/2006/0080/0080.20061114.11-05-06.notice.pdf</Link>
</MonthlyTARList>
<MonthlyTARList>
<FilingType>Rulemaking Hearings</FilingType>
<AgencyName>Agriculture</AgencyName>
<Filing>0080-06-15 Interior Designers</Filing>
<Link>http://www.tn.gov/sos/rules_hearingnotices/2006/0120/0120.20061130.11-27-06.notice.pdf</Link>
</MonthlyTARList>
 
So that the file reads:
 
Rulemaking Hearings
Agriculture
0080-06-14 Pest Control Operators
0080-06-15 Interior Designers
 
What I have so far (grouping by FilingType only):
 
<xsl:key name="tar_by_filingtype" match="MonthlyTARList"
use="FilingType"/><xsl:template match="dataroot">

<xsl:for-each select="MonthlyTARList[count(. | key('tar_by_filingtype',
FilingType)[1])=1]">
    <xsl:sort select="FilingType" />
           <div class="headline1_xml"><xsl:value-of
select="FilingType"/></div>
    <xsl:for-each select="key('tar_by_filingtype', FilingType)">
          <div class="text_xml"><xsl:value-of
select="AgencyName"/></div>
        <div><xsl:value-of select="Filing"/></div>
 
thanks for any help,


Robert Greene
Tennessee Department of State
Division of Publications
312 8th Ave. North, 8th Floor
Nashville, TN 37243
(615) 253-4571
FAX (615) 741-5133
http://www.tennessee.gov/sos

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] Using XSLT 1.0 , I have tried using the Meunchian method solutions on, Robert.A Greene <=