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:
XSL Document:
Thanx for now!
			
			
									
									
						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>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!
Return to “General XML Questions”
			
				Jump to
				
			
		
			
			
	
	- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service