I am new with xslt programming.
I need to perform some special styling, to get the below output:
-- TEXT1.......................................................TEXT2
Actually there are two issues here:
- Line of dots between items
- Custom bullet symbol for li elements in ul
As I found (1-Line of dots css , 2-custom bullet css) to do that I need to use with "before" selector
Here the suggested code (from above second link):
li:before {
content: "-";
padding-right: 5px;
}
Until now, I wrote the special css style in the xslt as code below:
<xsl:template match="listItem">
<ul style="list-style-type:disc; list-style-position: inside; padding-left: 0;">
<li>
<xsl:value-of select="para"/>
</li>
</ul>
</xsl:template>
Now, I need to insert the "before" selector to implement my issue.
I'd love to know what the syntax of this is,
Or alternatively, I would be happy to know other ways.
Thanks!
Updated: I added some code to the question.