mainperlSGML - Support: sr #105970, dtdtree documentation does not...

 
 

sr #105970: dtdtree documentation does not match up with source code

Submitter:  Stephen Evanchik <evanchsa>
Submitted:  Wed 15 Aug 2007 09:20:12 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  4 - Important Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 15 Aug 2007 09:20:12 PM UTC, original submission:  

dtdtree documentation says that the catalog file will search the current directory for system_ids with relative filenames. The code does not do that, instead it always fully qualifies it by the fact that $dirname will be empty in the case of "./catalog" instead of "."

Here's the patch that I used, probably would be better to fix the regex:

<pre>
--- dtd.pl.orig 2007-08-15 17:09:37.000000000 -0400
+++ dtd.pl      2007-08-15 17:09:56.000000000 -0400
@@ -811,7 +811,7 @@

     ## Extract path to be able to resolve relative sysid's
     $filename =~ m%^(/.+)/[^/]+$%;
-    my $dirname = $1;
+    my $dirname = $1 || '.';

     if (!$tmp) {
        &errMsg("Warning: Unable to open entity map file: $filename\n");
</pre>

Stephen Evanchik <evanchsa>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by evanchsa (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-08-15 evanchsa Carbon-Copy- Added ydirson
        Carbon-Copy- Added ehood
        Carbon-Copy- Added evanchsa

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code