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 66the directory the server was started from. odML files can then be
77viewed from there.
88To 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
1111odML file to be rendered. By using the '--fetch' flag the latest version
1212of this stylesheet will be downloaded from 'templates.g-node.org' to
1313the current directory when starting up the service.
3838
3939PORT = 8000
4040REPOSITORY = "https://templates.g-node.org/_resources/"
41- STYLESHEET = "odmlTerms.xsl"
41+ STYLESHEET = "odmlDocument.xsl"
42+ CSS = "odml_style.css"
4243
4344
4445def download_file (repo , filename ):
@@ -94,6 +95,8 @@ def main(args=None):
9495 if parser ['--fetch' ] and not os .path .exists (STYLESHEET ):
9596 print ("[Info] Downloading stylesheet '%s'" % STYLESHEET )
9697 download_file (REPOSITORY , STYLESHEET )
98+ print ("[Info] Downloading stylesheet '%s'" % CSS )
99+ download_file (REPOSITORY , CSS )
97100
98101 server_port = int (parser ['-p' ]) if parser ['-p' ] else PORT
99102
You can’t perform that action at this time.
0 commit comments