Last active
February 18, 2019 17:47
-
-
Save cmnstmntmn/d6b545b993da1451e22b6b88f55ef1da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:template select="people"> | |
// -- return a list | |
<xsl:apply-templates select="entry" /> | |
<xsl:template> | |
<xsl:template select="entry"> | |
<xsl:value-of select="entry/id" /><xsl:if test="position() != last()">,</xsl:value-of> | |
</xsl:template> | |
<xsl:template name="form"> | |
<xsl:variable name="users"> | |
<xsl:apply-templates select="people" /> | |
</xsl> | |
<input type="fields[users][{$users}]" /> | |
</xsl:template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment