User:Dr pda/ref2tab.stx





  

  

  

   

 <stx:assign name="page-id" select="normalize-space(.)"/> </stx:template>

<stx:template match="revision"> <stx:process-children/> </stx:template>

<stx:variable name="PND"/> <stx:variable name="pnd-count"/>

<stx:template match="parsed"> <stx:assign name="pnd-count" select="0"/> <stx:assign name="PND"/> <stx:process-children/> <stx:if test="$pnd-count &gt; 1"> <stx:message> <stx:value-of select="$pnd-count"/> <stx:text> PND:</stx:text> <stx:value-of select="$page-title"/> <stx:text>&#xA;</stx:text> </stx:message> </stx:if>

<stx:if test="$pnd-count &gt; 0"> <stx:value-of select="$page-id"/> <stx:text>&#x9;</stx:text> <stx:value-of select="$page-title"/> <stx:text>&#x9;</stx:text> <stx:value-of select="$PND"/> <stx:text>&#xA;</stx:text> </stx:if>

</stx:template>

<stx:template match="template"> <stx:assign name="template-name" select="@name"/>

<stx:choose> <stx:when test="$template-name='PND'"> <stx:assign name="pnd-count" select="$pnd-count + 1"/> <stx:assign name="PND"/> </stx:when> </stx:choose> <stx:process-children/> </stx:template>

<stx:template match="param"> <stx:choose> <stx:when test="$template-name = 'PND'"> <stx:assign name="PND" select="normalize-space(.)"/> </stx:when> </stx:choose> </stx:template>

</stx:transform>