You need to expand your XSLT with more specific matches.
Next you should output input elements containing your case_id values ββfor each Case . I assumed that there is one case_id per Case . I tried to make XSLT explicit as I can, but you don't have to be as precise in your implementation if you don't want to be.
<xsl:template match="/"> <xsl:apply-templates /> </xsl:template> <xsl:template match="Case"> <xsl:element name="input"> <xsl:attribute name="type"> <xsl:text>hidden</xsl:text> </xsl:attribute> <xsl:attribute name="name"> <xsl:text>case_num</xsl:text> </xsl:attribute> <xsl:attribute name="value"> <xsl:value-of select="case_id"/> </xsl:attribute> </xsl:element> </xsl:template>
source share