This is a pretty common pattern:
<xsl:for-each select="*">
<xsl:value-of select="."/>
<xsl:if test="position() != last()">
<xsl:text>,</xsl:text>
</xsl:if>
</xsl:for-each>
More Related Contents:
- Current node vs. Context node in XSLT/XPath?
- XPath select all elements between two specific elements
- XSLT: How to convert XML Node to String
- XPath with multiple conditions
- Is there an XSLT name-of element?
- How do you output the current element path in XSLT?
- Finding the difference between two dateTimes in XSLT
- XSLT Replace function not found
- What is the difference between ‘or’ and ‘|’ when programming in xslt?
- Concatenate multiple node values in xpath
- WiX Installer: using xslt with heat.exe to update attributes
- XSLT – How to keep only wanted elements from XML
- XSLT – Comparing preceding-sibling’s elements with current’s node element
- How to execute XPath one-liners from shell?
- xmllint failing to properly query with xpath
- How to force wrap on table entries
- XPath to select Element by attribute value
- How can I use XPath to find the minimum value of an attribute in a set of elements?
- How to replace “single quote” to “double single quote” in XSLT
- How to find the max attribute from an XML document using Xpath 1.0
- How do you identify duplicate values in a numerical sequence using XPath 2.0?
- Using XPath, How do I select a node based on its text content and value of an attribute?
- distinct in Xpath?
- How can I select an element with multiple classes with Xpath?
- How to use node-set function in a platform-independent way?
- XPath find all elements with specific child node
- Converting XML to escaped text in XSLT
- Including an XML file in an XML/XSL file
- How to read plain text content with XSLT 1.0
- Converting XML elements to XML attributes using XSLT