xml - XSLT mode not being triggered -


i'm trying use xslt template matching combined mode functionality run particular template depending on condition. in case whether or not admin set true.

<xsl:template match="*[//properties[@admin='true']]" mode="admin">     <!-- here -->     <apply-templates select="self::node()[not(../personalisederrorinstance)]" mode="personalisation"/> </xsl:template>  <xsl:template match="*[//properties[@admin='false']]" mode="admin">     <apply-templates select="self::node()" mode="personalisation"/> </xsl:template>  <xsl:template match="*" mode="personalisation">     <!-- never here --> 

for reason never seem hit personalisation template match, regardless of whether admin true or false. there blatantly obvious i'm doing wrong?

i've tried changing self::node() * i'm not sure causing issue.

* means child entity , can not replace self::node().

if provide source xml may find problem. may current node has sibling instance personalisederrorinstance.

best regards majo


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -