- summary: Ft/Server/Server/SCore/XsltDocumentImp.py (line 112-124) --> Stylesheet dependency checking in repository can traceback
I received an exception while trying to access a
webpage that used xsl:include. The exception
originated from line 114 of
Ft/Server/Server/SCore/XsltDocumentImp.py. The
entire function has been reproduced here:
Ft/Server/Server/SCore/XsltDocumentImp.py (line 112-
124)
112: def _hasModifiedDependencies(self, path):
113: model = self._driver.getSystemModel()
114: curLmd = model.complete(path,
Schema.MODIFIED_DATE, None)[0].object
115:
116: for stmt in model.complete(path,
Schema.STYLESHEET_DEPENDENCY,None):
117: testPath = Uri.BaseJoin(path, stmt.object)
118: test = model.complete(testPath,
Schema.MODIFIED_DATE,None)
119: if test and test[0].object > curLmd:
120: return 1
121: if self._hasModifiedDependencies
(testPath): return 1
122: return 0
Line 121 needs to be modified as follows:
*121: if test and self._hasModifiedDependencies
(testPath): return 1
The variable 'test' must be a valid (RDF Complete)
Statement List before you can call
self._hasModifiedDependencies again.