How to combine two templates in XSLT?

dash_t

New Member
I have two XSLT templates that I need to combine into one and then sort it in alphabetic order:\[code\]<xsl:template match="properties-for-sale"> <xsl:for-each select="entry"> <option value="http://stackoverflow.com/questions/13702669/{name}"> <xsl:value-of select="name"/> </option> </xsl:for-each></xsl:template><xsl:template match="properties-for-rent"> <xsl:for-each select="entry"> <option value="http://stackoverflow.com/questions/13702669/{name}"> <xsl:value-of select="name"/> </option> </xsl:for-each></xsl:template>\[/code\]How can this be achieved in XSLT?Thanks for any help!
 
Back
Top