Page 1 of 1

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

Posted: Wed Mar 08, 2017 1:14 pm
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.

XSL Document:

Code: Select all

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

Thanx for now!