summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-03-29 11:39:11 +0100
committerJan Pokorný <jpokorny@redhat.com>2013-03-29 11:39:11 +0100
commit3d15b3a6a6fc814722458d64580e39630ba055fb (patch)
tree8a347037f9d8068c3df4892b1168f0875fc6befc
parentcaba0224b0c7fcc4f5d88aff6e167d73b575ea1b (diff)
downloadontogen-3d15b3a6a6fc814722458d64580e39630ba055fb.tar.gz
ontogen-3d15b3a6a6fc814722458d64580e39630ba055fb.tar.xz
ontogen-3d15b3a6a6fc814722458d64580e39630ba055fb.zip
Display full namespace URI in generated HTML
Previously this part hasn't adjusted to the internal changes. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--ontogen.py2
-rw-r--r--ontogen.template2
2 files changed, 2 insertions, 2 deletions
diff --git a/ontogen.py b/ontogen.py
index d43ed1b..ca1cd79 100644
--- a/ontogen.py
+++ b/ontogen.py
@@ -431,7 +431,7 @@ class PrependFigure(InheritDocstring):
try:
if all(map(lambda x: isinstance(x, basestring),
map(lambda x: getattr(ret, x, None),
- ('base', 'version'))
+ ('base_uri_full',))
)):
setattr(ret, 'examples', [ExampleSelfFigureProto(ret)]
+ list(getattr(ret, 'examples', ())))
diff --git a/ontogen.template b/ontogen.template
index a885b98..c1f94d0 100644
--- a/ontogen.template
+++ b/ontogen.template
@@ -5,7 +5,7 @@
Licensed under LGPL v2.1 (the same as original ns-schema.xsl)
-->
<rdf:RDF
- xml:base="${Ontology.base}"
+ xml:base="${Ontology.base_uri_full}"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"