File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 6
6
the directory the server was started from. odML files can then be
7
7
viewed from there.
8
8
To properly render XML, an odML file may contain the element
9
- '<?xml-stylesheet type="text/xsl" href="odmlTerms .xsl"?>' where the
10
- 'odmlTerms .xsl' stylesheet should reside in the same directory as the
9
+ '<?xml-stylesheet type="text/xsl" href="odmlDocument .xsl"?>' where the
10
+ 'odmlDocument .xsl' stylesheet should reside in the same directory as the
11
11
odML file to be rendered. By using the '--fetch' flag the latest version
12
12
of this stylesheet will be downloaded from 'templates.g-node.org' to
13
13
the current directory when starting up the service.
38
38
39
39
PORT = 8000
40
40
REPOSITORY = "https://templates.g-node.org/_resources/"
41
- STYLESHEET = "odmlTerms.xsl"
41
+ STYLESHEET = "odmlDocument.xsl"
42
+ CSS = "odml_style.css"
42
43
43
44
44
45
def download_file (repo , filename ):
@@ -94,6 +95,8 @@ def main(args=None):
94
95
if parser ['--fetch' ] and not os .path .exists (STYLESHEET ):
95
96
print ("[Info] Downloading stylesheet '%s'" % STYLESHEET )
96
97
download_file (REPOSITORY , STYLESHEET )
98
+ print ("[Info] Downloading stylesheet '%s'" % CSS )
99
+ download_file (REPOSITORY , CSS )
97
100
98
101
server_port = int (parser ['-p' ]) if parser ['-p' ] else PORT
99
102
You can’t perform that action at this time.
0 commit comments