B
B
Binarix2016-12-05 11:08:03
XSL & XSLT
Binarix, 2016-12-05 11:08:03

How to group elements by containers in xsl?

Hello. Prompt as in xsl it is possible to group elements from the general flow. Those. for example, in the tree there are elements 1,2,3,4 and you need the final html to look like this

<div>
<span>1</span>
<span>2</span>
</div>
<div>
<span>3</span>
<span>4</span>
</div>

The number of elements can be different, the point is that each container has a certain number of elements.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question