[Home] [By Thread] [By Date] [Recent Entries]
3. Finally, is this a correct method to approach? Am I correct that you have a variable choosing where <xsl:apply-imports/> should go? If yes, then you may define a selector element, and create an indirect call to dispatch processing. main style: <xsl:variable name="selector" as="element">
<xsl:element name="{define a selector here}"/>
</xsl:variable>... <xsl:template match="article/meta/journalcode[.='ABCD' | 'EFGH' | 'IJKL' | 'LMNO']"> <xsl:apply-templates mode="call" select="$selector"> <xsl:with-param name="context-item" select="."/> </xsl:apply-templates> </xsl:template> import style 1: <xsl:template mode="call" match="style 1 selector"> <xsl:with-param name="context-item" select="."/> <xsl:apply-templates select="$context-item"/> </xsl:template> ... import style N: <xsl:template mode="call" match="style N selector"> <xsl:with-param name="context-item" select="."/> <xsl:apply-templates select="$context-item"/> </xsl:template> -- Vladimir Nesterovsky
|

Cart



