XML Change ordered list item to unordered list item if there is one bullet

Questions about XML that are not covered by the other forums should go here.
Thieskuh84
Posts: 1
Joined: Tue Mar 07, 2017 12:02 pm

XML Change ordered list item to unordered list item if there is one bullet

Post by Thieskuh84 »

Hi all,

Perheps a silly question. But i'm a rooky so thats way i'm askeing.

Is the question below possible?

I'm using XML/XSLT DITA-OT and it would be great if i have by one bullet in my content i just get an "unordered list" bullet and if the list has more than one bullet items, the "unordere list" must changed to a ordered list in numbers.

XML Document:

Code: Select all

<steps class="- topic/ol task/steps " 
<step class="- topic/li task/step " xtrc="step:1;2:1688"
<cmd class="- topic/ph task/cmd ">
Step one.
</cmd>
</step>
XSL Document:

Code: Select all

<xsl:template match="*[contains(@class, ' steps/step ')]">
<xsl:for-each select="steps/step">
<xsl:if test="cmd >'1'">
:?: <!-- here must do the magic his work -->
</xsl:if>
</xsl:for-each>
</xsl:template>

Thanx for now!