tng 2003/01/03 12:10:17 Modified: c/src/xercesc/validators/schema TraverseSchema.cpp Log: New feature StandardUriConformant to force strict standard uri conformance. Revision Changes Path 1.49 +7 -4 xml-xerces/c/src/xercesc/validators/schema/TraverseSchema.cpp Index: TraverseSchema.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/TraverseSchema.cpp,v retrieving revision 1.48 retrieving revision 1.49 diff -u -r1.48 -r1.49 --- TraverseSchema.cpp 3 Jan 2003 16:38:21 -0000 1.48 +++ TraverseSchema.cpp 3 Jan 2003 20:10:17 -0000 1.49 @@ -6133,9 +6133,12 @@ srcToFill = new URLInputSource(urlTmp); } - catch(const MalformedURLException&) { - // Its not a URL, so lets assume its a local file name. - srcToFill = new LocalFileInputSource(fSchemaInfo->getCurrentSchemaURL(),normalizedURI); + catch(const MalformedURLException& e) { + // Its not a URL, so lets assume its a local file name if non-standard URI is allowed + if (!fScanner->getStandardUriConformant()) + srcToFill = new LocalFileInputSource(fSchemaInfo->getCurrentSchemaURL(),normalizedURI); + else + throw e; } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]