E
E
Eugene M2018-11-22 12:18:39
XSL & XSLT
Eugene M, 2018-11-22 12:18:39

How to write an XSLT condition correctly?

If the article is filled, then we display the following:
This does not work:

<xsl:templates match="property[@name='artikul']" >
<div>Артикул: <xsl:apply-templates select="$page//property[@name = 'artikul'][value]"/></div>
</xsl:templates>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Fov, 2018-11-22
@Roman-Fov

Try like this:

<xsl:templates match="property[@name='artikul']" >
  <div>Артикул: <xsl:apply-templates select="value"/></div>
</xsl:templates>

If it does not go, then xml to the studio

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question