[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Using XSLT 1.0 , I have tried using the Meunchian meth

Subject: Using XSLT 1.0 , I have tried using the Meunchian method solutions on
From: "Robert.A Greene" <Robert.A.Greene@xxxxxxxxxxx>
Date: Tue, 19 Dec 2006 14:36:51 -0600
 Using XSLT 1.0
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.