I have the following XML document:
<ReportParameters SP="prRptActivityDetail">
<Parameter>
<Name>Period Start Date</Name>
<Type>Date</Type>
<Control>DateTextbox</Control>
<ControlName>dtePeriodStartDate</ControlName>
<Validators>
<Validator>Required</Validator>
<Validator>DataTypeCheck</Validator>
<Validator>StartBeforeEnd</Validator>
</Validators>
</Parameter>
</ReportParameters>
I have written an XSLT file to transform the above:
<xsl:for-each select="ReportParameters/Parameter/Validators">
<xsl:choose>
<xsl:when test="Validator='Required'">
<span>
<REQUIRED VALIDATOR CONTROL HERE>
</span>
</xsl:when>
<xsl:when test="Validator='DataTypeCheck'">
<span>
<DATA TYPE CHECK VALIDATOR CONTROL HERE>
</span>
</xsl:when>
</xsl:choose>
I've left out a lot of the XSLT for clarity.
For each parameter control (Period Start Date in this case) I wish to have all of the validators listed (3 in this case) placed on the page as validator controls, but I only get the first one when using for-each. I know why this is but I'm a complete newbie with xslt and don't know the syntax to get around this.
Any help much appreciated,
Rich.