I found info on page 492 of Michael's book for using generate-id() and can see the generated id when I hover over my hyperlink but it does not jump down the document to the anchor spot.
Here is a sample of the relevant XML:
<BillingProvider>
<LX>
<LX01>1</LX01>
</LX>
<TS3>
<TS301>105590000</TS301>
<TS302>11</TS302>
<TS303>20041231</TS303>
<TS304>10</TS304>
<TS305>7395.6</TS305>
<TS306>0</TS306>
<TS307>0</TS307>
<TS308>7395.6</TS308>
<TS309>0</TS309>
</TS3>
<ClaimLineItem>
etc.... Further on down the <BillingProvider> section closes and a new one begins.
Here is my xslt that generates the summary table:
<xsl:for-each select="BillingProvider">
<tr>
<td><a href="#{generate-id(TS3/TS301)}">
<xsl:value-of select="TS3/TS301"></xsl:value-of></a>
</td>
<td align="right">
<xsl:value-of select="TS3/TS304"></xsl:value-of>
</td>
<td align="right">
<xsl:text>$</xsl:text>
<xsl:value-of select="format-number(TS3/TS305,'#,###.00')"></xsl:value-of>
</td>
<td align="right">
<xsl:text>$</xsl:text>
<xsl:value-of select="format-number(TS3/TS306,'#,###.00')"></xsl:value-of>
</td>
<td align="right">
<xsl:text>$</xsl:text>
<xsl:value-of select="format-number(TS3/TS308,'#,###.00')"></xsl:value-of>
</td>
<td align="right">
<xsl:text>$</xsl:text>
<xsl:value-of select="format-number(TS3/TS309,'#,###.00')"></xsl:value-of>
</td>
</tr>
</xsl:for-each>
And here is the start of my detail section template:
<xsl:template match="File/Detail/BillingProvider">
<tr><a name="{generate-id()}"></a>
<td colspan="17"><strong>[u]
<xsl:value-of select="TS3/TS301"/>
<xsl:variable name="billingproviderid" select="TS3/TS301"></xsl:variable>
</u></strong>
</td>
</tr>
<tr>
<td class="Z">Client<br/>ID</td>
<td class="Z">TCN</td>
<td class="Z">Remit<br/>Line #</td>
<td class="Z" valign="top">First</td>
<td class="Z" valign="top">Middle</td>
<td class="Z" valign="top">Last</td>
<td class="Z">Mainecare<br/>ID</td>
<td class="Z">Service<br/>From</td>
<td class="Z">Service<br/>To</td>
<td class="Z">Procedure<br/>Code</td>
<td class="Z">Srvc Prov<br/>ID</td>
<td class="Z">Units</td>
<td class="Z">Billed</td>
<td class="Z">Paid</td>
<td class="Z">Adj.</td>
<td class="Z">Code</td>
<td class="Z">Remark</td>
</tr>
<xsl:for-each select="ClaimLineItem">
<xsl:sort select="NM1/NM103"/>
<tr>
<td>
<xsl:choose>
<xsl:when test="$billingproviderid = '105590000'">
<xsl:value-of select="translate(substring(CLP/CLP01,1,5),'XXX',' ')"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>NA</xsl:text>
</xsl:otherwise>
</xsl:choose>
</td>
etc....
So, I'm maybe halfway there but, again, the name anchor tags (<a name=xxxx></a> do not appear to be working.
|