2004/ws/addressing generate-acknowledgements.xsl,1.6,1.7

Update of /sources/public/2004/ws/addressing
In directory homer:/tmp/cvs-serv9606

Modified Files:
	generate-acknowledgements.xsl 
Log Message:
Updated to work with new format


Index: generate-acknowledgements.xsl
===================================================================
RCS file: /sources/public/2004/ws/addressing/generate-acknowledgements.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** generate-acknowledgements.xsl	22 Mar 2005 14:07:33 -0000	1.6
--- generate-acknowledgements.xsl	13 Feb 2006 13:11:57 -0000	1.7
***************
*** 20,33 ****
        <p>Members of the Working Group are (at the time of writing, and by
        alphabetical order):
!       <xsl:apply-templates
! 	  select="//html:table[@class='groupmembers']">
! 	<xsl:with-param name="standing" select="'standing'"/>
!       </xsl:apply-templates>
        </p>
        <p>Previous members of the Working Group were:
!       <xsl:apply-templates
! 	  select="//html:table[@class='groupmembers']">
! 	<xsl:with-param name="standing" select="'no longer'"/>
!       </xsl:apply-templates>
        </p>
        <p>The people who have contributed to <loc
--- 20,31 ----
        <p>Members of the Working Group are (at the time of writing, and by
        alphabetical order):
!       <xsl:call-template name="list-participants">
! 	<xsl:with-param name="participating" select="1"/>
!       </xsl:call-template>
        </p>
        <p>Previous members of the Working Group were:
!       <xsl:call-template name="list-participants">
! 	<xsl:with-param name="participating" select="0"/>
!       </xsl:call-template>
        </p>
        <p>The people who have contributed to <loc
***************
*** 45,57 ****
    </xsl:template>
  
!   <xsl:template match="html:table">
!     <xsl:for-each select="html:tr[position() &gt; 1][contains(html:td[@class='standing'],$standing)]">
! 	<xsl:apply-templates select="."/>
! 	<xsl:if test="position()!=last()">
! 	  <xsl:text>, </xsl:text>
! 	</xsl:if>
! 	<xsl:if test="position()=last()">
! 	  <xsl:text>.</xsl:text>
! 	</xsl:if>
      </xsl:for-each>
    </xsl:template>
--- 43,67 ----
    </xsl:template>
  
!   <xsl:template name="list-participants">
!     <xsl:param name="participating"/>
!     <xsl:variable name="status">
!       <xsl:choose>
! 	<xsl:when test="$participating = 1">
! 	  <xsl:text>good standing</xsl:text>
! 	</xsl:when>
! 	<xsl:otherwise>
! 	  <xsl:text>no longer participating</xsl:text>	  
! 	</xsl:otherwise>
!       </xsl:choose>
!     </xsl:variable>
!     <xsl:for-each select="//html:dl[contains(@class, 'group-member')
! 			  and contains(normalize-space(html:dd[@class='status']), $status)]">
!       <xsl:value-of select="html:dt[@class='foaf-name']"/>
!       <xsl:if test="position()!=last()">
! 	<xsl:text>, </xsl:text>
!       </xsl:if>
!       <xsl:if test="position()=last()">
! 	<xsl:text>.</xsl:text>
!       </xsl:if>
      </xsl:for-each>
    </xsl:template>

Received on Monday, 13 February 2006 13:12:02 UTC