Hi Elliotte,
Firstly, this isn't just an API issue. If someone presents us with a
document containing something like
xsi:schemaLocation="http://my.com c:\My%Schema.xsd"
then we need to decide whether to try and "fix" the filename or simply
reject it. Same goes for systemId's in a DOCTYPE line or an entity
declaration.
As to API's: all the parse methods in JAXP, SAX and indeed DOM L3 mention
URI's when they accept String parameters directly, and identify the concept
of systemId's with URI's. So the intention appears pretty unambiguously
not to permit platform-dependent filenames. That's why I'm contending
we're breaking the letter of these specs by being lax.
So, I think we have a clear-cut Xerces issue here. Now, if you'd like me
to ping the SAX devel list to see what other implementors do, I'd be happy
to do so. Indeed, that might be a pretty good idea.
Cheers!
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone: 905-413-3519, T/L 969-3519
E-mail: [EMAIL PROTECTED]
|---------+---------------------------->
| | Elliotte Rusty |
| | Harold |
| | <[EMAIL PROTECTED]|
| | nc.edu> |
| | |
| | 09/11/2002 07:27 |
| | AM |
| | Please respond to|
| | xerces-j-user |
| | |
|---------+---------------------------->
>---------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED], [EMAIL PROTECTED]
|
| cc:
|
| Subject: Re: filenames versus URI's
|
|
|
|
|
>---------------------------------------------------------------------------------------------------------------------------------------------|
Could you be clearer about exactly which classes and methods you're
talking about here?
If this is SAX's XMLReaderFactory, then discussions and resolution of
this important issue should probably take place within the SAX
community on sax-devel, since it affects more than just Xerces. If
these are JAXP classes, I guess the JCP is the right place. Off the
top of my head, DOMParser is the only Xerces-owned class that's
likely to encounter this issue.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
| http://www.cafeconleche.org/books/xian2/ |
| http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]