OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [Sax-devel] RFE [ #496133 ] New resolver entry point

[ Lists Home | Date Index | Thread Index ]
  • To: Norman Walsh <ndw@nwalsh.com>
  • Subject: Re: [Sax-devel] RFE [ #496133 ] New resolver entry point
  • From: Edwin Goei <edwingo@sun.com>
  • Date: Fri, 25 Jan 2002 11:19:40 -0800
  • Cc: sax-devel@lists.sourceforge.net, "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • References: <877kr0v0wr.fsf@nwalsh.com> <090301c193e0$c7ba0960$6800000a@brownell.org> <87lmffnu7b.fsf@nwalsh.com> <0bcf01c1948e$213b8420$6800000a@brownell.org> <87666iq9ye.fsf@nwalsh.com> <0f0601c19569$4f44d3e0$6800000a@brownell.org> <87elkwvs1q.fsf@nwalsh.com> <22cc01c19ad0$516c1f40$6800000a@brownell.org> <87d70gtywn.fsf@nwalsh.com> <251b01c19af5$d61a5700$6800000a@brownell.org> <87n0zdgglw.fsf@nwalsh.com> <026d01c1a5cb$09909920$6800000a@brownell.org> <87pu3yz35o.fsf@nwalsh.com>

Norman Walsh wrote:
> So you propose to parse
>   <xsl:stylesheet ...>
>     <xsl:import href="http://example.com/foo.xsl"/>
>   </xsl:stylesheet>
> without a resolver?
> I suspect that you contend that's the same as the external identifier
> <!ENTITY foo SYSTEM "http://example.com/foo.xsl";> and you plan to
> simply pass it through the entityResolver() hook. I think it's clear
> that I disagree.

Could you explain why you disagree?  Why not pass the href into the SAX
EntityResolver w/ publicID=null and systemID=@href?  I can think of
these reasons:

1) Your app may want two different resolutions of the same URI
2) You don't like mixing up XML REC entity resolution w/ the concept of
general URI resolution

If #1 is not the reason, then in #2, having two different resolvers
seems like it would be more complex to write apps since you would need
to at least provide two methods.



News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS