Commits

Anonymous committed 3ff5ccf Draft

- fix by Pawel Tomulik: changed terminator symbol for XML dependencies detection
- fix by Dirk Baechle: only scan existing files for XML dependencies

  • Participants
  • Parent commits 74f0af5

Comments (0)

Files changed (2)

  
 def __xml_scan(node, env, path, arg):
     """ Simple XML file scanner, detecting local images and XIncludes as implicit dependencies. """
+    # Does the node exist yet?
+    if not os.path.isfile(str(node)):
+        return []
+    
     if env.get('DOCBOOK_SCANENT',''):
         # Use simple pattern matching for system entities..., no support 
         # for recursion yet.

File utils/xmldepend.xsl

 
 <!-- BEGIN PARAMETERS -->
 
-<xsl:param name="xmldepend.terminator" select="'
-'"/>
+<xsl:param name="xmldepend.terminator" select="'&#10;'"/>
 
 <!-- END PARAMETERS -->