Custom Web Publishing Guide

Table Of Contents
136 FileMaker Server Advanced Custom Web Publishing Guide
CDML tag name: Current Record Number
Tag is replaced with the record’s position in the current found set
CDML syntax: [FMP-CurrentRecordNumber]
XSLT-CWP conversion:
1 when inside SGML element attribute value: {position()}
1 otherwise: <xsl:value-of select="position() + $current-skip" />
1 when outside of a [FMP-Record] loop: <!-- CDML Converter ERROR: [FMP-CurrentRecordNumber] outside of
[FMP-Record]
-->
1 if used in document, $current-skip variable is created at top-level using named template from the
cdml2xsl_utilities.xsl stylesheet
CDML tag name: Current Repeat Number
Tag is replaced with the repetition currently being processed. This is always found within a
[FMP-Repeating][/FMP-Repeating] loop.
CDML syntax: [FMP-CurrentRepeatNumber]
XSLT-CWP conversion:
1 when inside SGML element attribute value: {position()}
1 otherwise: <xsl:value-of select="position()"/>
1 when outside of a [FMP-Repeating] loop: <!-- CDML Converter ERROR: [FMP-CurrentRepeatNumber] outside
of [FMP-Repeating]
-->
Converted Result: <form action="/fmi/xsl/results.xsl" method="post">
<input type="hidden" name="–DB" value="name">
<input type="hidden" name="–grammar" value="fmresultset">
<input type="hidden" name="–RecID" value="1023">
<input type="submit" name="–Delete" value="Delete This Record">
</form>
Conversion example
Original CDML: Current record in found set: [FMP-CurrentRecordNumber]
Converted XSLT-CWP: Current record in found set: <xsl:value-of select="position() + $current-skip" />
Converted Result: Current record in found set: 3
Conversion example