The XML file has a series of source and ID code pairs which I want to display in a single cell in a table. For instance, it would look like this..

SourceA - 4598H67
SourceB - 98565
SourceC - 98ASD5

The code below adds them to a single cell but they come out like this

SourceA - 4598H67SourceB - 98565SourceC - 98ASD5

How can I add a CR, LF, or CR/LF, which ever is appropriate, in-between each pair.

<td bordercolor="#000000">
	<xsl:for-each Select="IDs">					
			<xsl:value-of select="Type/Text" /> - <xsl:value-of select="ID" />
	</xsl:for-each>	
</td>

Recommended Answers

All 2 Replies

Well, isn't my face red. I'm new to XPath and just sort lost site of the basics.

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.