Page 1 of 1

Bulleted list

Posted: 03 Jun 2015, 16:03
by VincentBernard
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

Re: Bulleted list

Posted: 13 Jul 2015, 10:42
by neil.walsh
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