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
Bulleted list
- neil.walsh
- Posts: 454
- 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...
Cheers
Neil
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>
Neil