Bulleted list

Post Reply
VincentBernard
Posts: 10
Joined: 05 Mar 2015, 14:56

Hi !

We are trying to render the business principles on the viewer. Everything is fine but we have more than one business_principle_rationale. So in protégé, i changed the slot to multiple strings. When we render the page, it shows all the rationales in a bloc of strings. How can we render it in a bulleted list like the business_implications ?

Thanks in advance,

Vince
User avatar
neil.walsh
Posts: 444
Joined: 16 Feb 2009, 13:45
Contact:

Hi Vince,

You'll probably need a for-each loop. Here's an example which should point you in the right direction...

Code: Select all

<xsl:for-each select="/node()/simple_instance[type='Business_Principle']">
	<h2>
		<xsl:value-of select="current()/own_slot_value[slot_reference='name']/value"/>
	</h2>
	<ul>
		<xsl:for-each select="current()/own_slot_value[slot_reference='business_principle_rationale']/value">
			<li>
				<xsl:value-of select="current()"/>
			</li>
		</xsl:for-each>
	</ul>
</xsl:for-each>
Cheers

Neil
Post Reply