Project

General

Profile

1
<?xml version="1.0"?> 
2
<xsl:stylesheet 
3
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
4
  xmlns:owl="http://www.w3.org/2002/07/owl#"
5
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
7
  version="1.0">
8

    
9
  <xsl:template match="/">
10
  <html>
11
    <head>
12
      <link rel="stylesheet" type="text/css" href="style/skins/sms/sms.css"/>
13

    
14
    </head>
15
    <body>
16
      <h1>OWL Ontology</h1>
17
      <h2>Properties</h2>
18
      <xsl:apply-templates select="//owl:ObjectProperty"/>
19
      
20
      <hr/>
21
      <h2>Classes</h2>
22
      <xsl:apply-templates select="/rdf:RDF/owl:Class"/>
23
      
24
    </body>
25
  </html>
26
  </xsl:template>
27
  
28
  <xsl:template match="owl:ObjectProperty">
29
    <h3>Object Property <xsl:value-of select="@rdf:about"/></h3>
30
    <p><xsl:value-of select="rdfs:comment"/></p>
31
  </xsl:template>
32
  
33
  <xsl:template match="owl:Class">
34
    <h3>Class <xsl:value-of select="@rdf:about"/></h3>
35
    <p><xsl:value-of select="rdfs:comment"/></p>
36
  </xsl:template>
37
  
38
</xsl:stylesheet>
(6-6/23)