summaryrefslogtreecommitdiff
path: root/utils/ontology/sample.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'utils/ontology/sample.xsl')
-rw-r--r--utils/ontology/sample.xsl18
1 files changed, 18 insertions, 0 deletions
diff --git a/utils/ontology/sample.xsl b/utils/ontology/sample.xsl
new file mode 100644
index 000000000..d506a9a06
--- /dev/null
+++ b/utils/ontology/sample.xsl
@@ -0,0 +1,18 @@
+<xsl:stylesheet version = '1.0'
+ xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
+<xsl:output method="text" />
+<xsl:template match="service">
+<xsl:for-each select="section">
+// item#<xsl:value-of select="position()"/> for <xsl:value-of select="@fullname" />
+get<xsl:value-of select="@name"/>Of<xsl:value-of select="@prefix" /> {
+ <xsl:for-each select="item">
+ <xsl:value-of select="@name"/> {
+ full : <xsl:value-of select="@fullvalue"/>
+ prefix : <xsl:value-of select="prefix" />
+ value : <xsl:value-of select="value" />
+ }
+ </xsl:for-each>
+}
+</xsl:for-each>
+</xsl:template>
+</xsl:stylesheet>