E
E
Eugene M2018-11-14 10:19:00
XSL & XSLT
Eugene M, 2018-11-14 10:19:00

How to output itemprop="position" content="" in XSLT?

Hello! Tell me how to make this moment on UMI micromarking of breadcrumbs in order to add the number automatically:

<meta itemprop="position" content="1" />
<meta itemprop="position" content="2" />
<meta itemprop="position" content="3" />

Answer the question

In order to leave comments, you need to log in

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

<meta itemprop="position" content="{position() + 1}"/>

But it will work with the correct Xpath

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question