
i am trying to extract list of the Busines Capabilities, description and parent BC name into CSV, but no luck...
I am getting capability names , description, but parent is presented by id (KB_666098_Class368), and cannot find the way to convert id to parent name...
Here is the code:
Code: Select all
<xsl:output method="text"></xsl:output>
<!-- Grab all the business capabilities -->
<xsl:template match="knowledge_base">
<xsl:text>Capability, Description, Parent</xsl:text>
<xsl:text>
</xsl:text>
<xsl:apply-templates select="/node()/simple_instance[type = 'Business_Capability']" mode="BusinessCapability">
<xsl:sort case-order="lower-first" order="ascending" select="own_slot_value[slot_reference = 'name']/value"></xsl:sort>
</xsl:apply-templates>
</xsl:template>
<!-- Render an Application_Provider instance -->
<xsl:template match="node()" mode="BusinessCapability">
<xsl:value-of select="own_slot_value[slot_reference = 'name']/value"></xsl:value-of>
<xsl:text>, </xsl:text>
<xsl:value-of select="replace(own_slot_value[slot_reference = 'description']/value, '
', '')"></xsl:value-of>
<xsl:text>, </xsl:text>
<xsl:value-of select="own_slot_value[slot_reference = 'supports_business_capabilities']/value"></xsl:value-of>
<xsl:text>
</xsl:text>
</xsl:template>
</xsl:stylesheet>
Any help on that?
Thanks in advance!
Alex