2002/ws/desc/test-suite extract-assertions.xsl,1.1,1.2

Update of /sources/public/2002/ws/desc/test-suite
In directory hutz:/tmp/cvs-serv18231/test-suite

Modified Files:
	extract-assertions.xsl 
Log Message:
Added part, section, and subsection


Index: extract-assertions.xsl
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/extract-assertions.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** extract-assertions.xsl	5 Jul 2006 22:26:27 -0000	1.1
--- extract-assertions.xsl	7 Jul 2006 16:00:10 -0000	1.2
***************
*** 19,24 ****
  					select="document($file)/spec/body/div1//assert">
  					<assertion class='{@class}' id='{@id}'
! 						required='{@required}'
! 						origin="{$uri}">
  						<!-- <xsl:apply-templates select='*|text()' /> -->
  						<xsl:value-of select='normalize-space(.)' />
--- 19,61 ----
  					select="document($file)/spec/body/div1//assert">
  					<assertion class='{@class}' id='{@id}'
! 						required='{@required}' origin="{$uri}">
! 						<xsl:attribute name='part'>
! 							<xsl:choose>
! 								<xsl:when
! 									test='contains($uri, "adjuncts")'>
! 									<xsl:text>2</xsl:text>
! 								</xsl:when>
! 								<xsl:otherwise>
! 									<xsl:text>1</xsl:text>
! 								</xsl:otherwise>
! 							</xsl:choose>
! 						</xsl:attribute>
! 						<xsl:attribute name='section'>
! 							<xsl:value-of
! 								select='count(ancestor::div1/preceding-sibling::div1)+1' />
! 						</xsl:attribute>
! 						<xsl:attribute name='subsection'>
! 							<xsl:choose>
! 								<xsl:when test='ancestor::div2'>
! 									<xsl:variable name='count'
! 										select='count(ancestor::div2/preceding-sibling::div2)+1' />
! 									<xsl:choose>
! 										<xsl:when
! 											test='$count &lt; 10'>
! 											<xsl:text>0</xsl:text>
! 											<xsl:value-of
! 												select='$count' />
! 										</xsl:when>
! 										<xsl:otherwise>
! 											<xsl:value-of
! 												select='$count' />
! 										</xsl:otherwise>
! 									</xsl:choose>
! 								</xsl:when>
! 								<xsl:otherwise>
! 									<xsl:text>00</xsl:text>
! 								</xsl:otherwise>
! 							</xsl:choose>
! 						</xsl:attribute>
  						<!-- <xsl:apply-templates select='*|text()' /> -->
  						<xsl:value-of select='normalize-space(.)' />

Received on Friday, 7 July 2006 16:00:32 UTC