http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1189

*** shadow/1189 Mon Apr  2 15:52:57 2001
--- shadow/1189.tmp.12946       Mon Apr  2 15:52:57 2001
***************
*** 0 ****
--- 1,49 ----
+ +============================================================================+
+ | relative path error                                                        |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1189                        Product: Xerces-C                |
+ |       Status: NEW                         Version: 1.4                     |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Major                    OS/Version: All                     |
+ |     Priority: High                      Component: Miscellaneous           |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                              |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ command line :
+ xalan -xml -indent 2 -in xml/index.xml -xsl xsl/main-page.xsl -out xml/index.html
+ 
+ in xml/index.xml :
+ <!DOCTYPE page SYSTEM "../DTD/page.dtd">
+ 
+ error :
+ Fatal Error at (file xml/index.xml, line 2, char38): An exception occured!
+ Type:RuntimeException, Message:Could not open DTD file 'xml/DTD/page.dtd'
+ XSL Error: Could not parse xml/index.xml document!
+ 
+ base path is "xml/" relative path is "../DTD/page.dtd" the result path should be
+ "DTD/page.dtd"
+ 
+ in src/util/Platforms/Linux/LinuxPlatformUtils.cpp :
+ (XMLPlatformUtils::weavePaths)
+ 
+         if (periodCount == 2)
+         {
+             basePtr--;
+             while ((basePtr >= basePath)
+             &&     ((*basePtr != chForwardSlash) && (*basePtr != chBackSlash)))
+             {
+                 basePtr--;
+             }
+ 
+             // The base cannot provide enough levels, so its in error/
+             if (basePtr < basePath)
+                 ThrowXML(XMLPlatformUtilsException,
+                          XMLExcepts::File_BasePathUnderflow);
+         }
+ 
+ it's not an error if there is something in the basepath like "xml/" for instance :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to