I see, thanks Radu.<br><br>You wrote:<br><br>> So it already works over the local DTD after Eliot followed your<br>> suggestion to correct the MathML system id in the HTML file.<br>
<br>Just for the record, it isn't necessary to change the system id as I originally suggested. All Eliot should have needed to do is to enable the MathML document type association, which must have gotten disabled somehow. I just tried it on my instance of version 13 and it worked.<br>
<br><br><br><div class="gmail_quote">On Mon, Jan 30, 2012 at 8:55 AM, Radu Coravu <span dir="ltr"><<a href="mailto:radu_coravu@sync.ro">radu_coravu@sync.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Chris,<br>
<br>
Yes and no :)<br>
<br>
So yes, as you observed the:<br>
<div class="im"><br>
> <rewriteSystem systemIdStartString="<a href="http://www.w3.org/TR/MathML2/dtd/" target="_blank">http://www.w3.org/TR/MathML2/dtd/</a>" rewritePrefix="content/dtd/"/><br>
<br>
</div>is already in place in the catalog file.<br>
<br>
But the catalog file is actually used by Oxygen (at least by the Oxygen<br>
13 versions with which I've tested).<br>
In the "Document Type Association" Preferences page the "MathML"<br>
configured document type adds this catalog to the used catalogs list.<br>
<br>
Actually using the default settings in Oxygen 13.2 I unplugged the<br>
network connection and it was not necessary to validate the file, Oxygen<br>
first tries to resolve the public ID via catalog (and fails), then tries<br>
to resolve the system (and succeeds) via the catalog file.<br>
I even tried to apply from Oxygen an XSLT transformation over the HTML<br>
file and it succeeded as Oxygen's catalog resolver is still used by the<br>
XSLT transformations.<br>
<br>
So it already works over the local DTD after Eliot followed your<br>
suggestion to correct the MathML system id in the HTML file.<br>
<div class="im"><br>
Regards,<br>
Radu<br>
<br>
Radu Coravu<br>
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger<br>
<a href="http://www.oxygenxml.com" target="_blank">http://www.oxygenxml.com</a><br>
<br>
</div><div class="im">On 1/30/2012 3:33 PM, Chris Maloney wrote:<br>
> Hmm, that's interesting.<br>
><br>
> Radu, after reading your email, I checked my copy of mathml/catalog.xml<br>
> (Oxygen version 12) and it has this already:<br>
><br>
> <rewriteSystem systemIdStartString="<a href="http://www.w3.org/TR/MathML2/dtd/" target="_blank">http://www.w3.org/TR/MathML2/dtd/</a>"<br>
> rewritePrefix="content/dtd/"/><br>
><br>
> which should be enough to map xhtml-math11-f.dtd to the<br>
> dtd/xhtml-math11-f.dtd file there, and I checked, and it does exist.<br>
><br>
> So then I discovered that I don't think this mathml catalog is being<br>
> loaded. I added<br>
><br>
> <nextCatalog catalog="mathml2/catalog.xml"/><br>
><br>
> to my Oxygen master frameworks catalog, and it started working. Is it<br>
> possible this has been missing all along? Seems hard to understand.<br>
><br>
> I also tried with the Oxygen 11 framework catalog, which I happen to<br>
> still have still installed, and got the same results -- this mathml dtd<br>
> was not resolved.<br>
><br>
><br>
> On Mon, Jan 30, 2012 at 3:22 AM, Radu Coravu <<a href="mailto:radu_coravu@sync.ro">radu_coravu@sync.ro</a><br>
</div><div><div class="h5">> <mailto:<a href="mailto:radu_coravu@sync.ro">radu_coravu@sync.ro</a>>> wrote:<br>
><br>
> Hi Eliot,<br>
><br>
> I agree with everything Chris says, resolving the DTD throught a catalog<br>
> should be best.<br>
> A while ago the W3C server was intentionally changed to disallow<br>
> consecutive connections to the schemas stored on it.<br>
> Oxygen indeed caches the associated schema (in fact it caches the<br>
> associated grammar) for validation but if you apply XSLT stylesheets on<br>
> your XML content they will connect each time to the web.<br>
><br>
> One hint would be for you to open this catalog file:<br>
><br>
> > OXYGEN_INSTALL_DIR/frameworks/mathml2/catalog.xml<br>
><br>
> and add the following mapping to it:<br>
><br>
> > <public publicId="-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"<br>
> uri="dtd/xhtml-math-svg.dtd"/><br>
><br>
> I am not quite sure the referenced DTD is 100% identical with the one at<br>
> W3C but it is a DTD for editing XHTML 1.1 + MathML 2.0 + SVG so it might<br>
> be enough.<br>
> I'll look more into this and see if we can add this mapping by default<br>
> in Oxygen.<br>
><br>
> Regards,<br>
> Radu<br>
><br>
> Radu Coravu<br>
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger<br>
> <a href="http://www.oxygenxml.com" target="_blank">http://www.oxygenxml.com</a><br>
><br>
><br>
><br>
> On 1/29/2012 12:23 AM, Eliot Kimber wrote:<br>
> > Thanks--fixing the system ID did the trick. You are correct that<br>
> providing a<br>
> > local copy would be best, but since Oxygen caches it on first<br>
> reference, I<br>
> > don't think it's a big deal to go to the Internet for it (as<br>
> least I hope<br>
> > not).<br>
> ><br>
> > Cheers,<br>
> ><br>
> > E.<br>
> ><br>
> > On 1/28/12 1:03 PM, "Chris Maloney"<<a href="mailto:voldrani@gmail.com">voldrani@gmail.com</a><br>
</div></div><div><div class="h5">> <mailto:<a href="mailto:voldrani@gmail.com">voldrani@gmail.com</a>>> wrote:<br>
> ><br>
> >> It looks like the system identifier there is wrong. It should be<br>
> >> "<a href="http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd" target="_blank">http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd</a>", I<br>
> think. But, of<br>
> >> course, rather than resolving it from w3c, you should download a<br>
> local copy<br>
> >> and put an entry to it in Oxygen's catalog file, using the<br>
> public id. Or, if<br>
> >> you'd rather not modify Oxygen's catalog file, create your own<br>
> catalog file in<br>
> >> the same directory as the dtd, like this:<br>
> >><br>
> >> <?xml version="1.0"?><br>
> >> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML<br>
> Catalog<br>
> >> V1.0//EN"<br>
> >><br>
> "<a href="http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd" target="_blank">http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd</a>"><br>
> >><br>
> >> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"><br>
> >> <public publicId="-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"<br>
> >> uri="xhtml-math11-f.dtd"/><br>
> >> </catalog><br>
> >><br>
> >> and then add an entry in Oxygen's XML Catalog preferences<br>
> pointing to this<br>
> >> catalog file.<br>
> >><br>
> >> That's how I'd fix it anyway -- not sure if it's the<br>
> easiest/best way or not.<br>
> >> :)<br>
> >><br>
> >><br>
> >><br>
> >> On Sat, Jan 28, 2012 at 8:47 AM, Eliot<br>
</div></div><div class="im">> Kimber<<a href="mailto:ekimber@reallysi.com">ekimber@reallysi.com</a> <mailto:<a href="mailto:ekimber@reallysi.com">ekimber@reallysi.com</a>>> wrote:<br>
> >>> I am trying to process local copies of HTML files that have<br>
> DOCTYPE decls<br>
> >>> like so:<br>
> >>><br>
> >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"<br>
> >>> "<a href="http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" target="_blank">http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd</a>" [<br>
> >>> <!ENTITY mathml "<a href="http://www.w3.org/1998/Math/MathML" target="_blank">http://www.w3.org/1998/Math/MathML</a>"><br>
> >>> ]><br>
> >>><br>
> >>><br>
> >>> It appears that Oxygen is trying to resolve the DTD and failing<br>
> to do so,<br>
> >>> which causes timeout delays and then failure of my transform,<br>
> of course.<br>
> >>><br>
> >>> What's the easiest/best way to fix this behavior?<br>
> >>><br>
> >>> Thanks,<br>
> >>><br>
> >>> E.<br>
> >>><br>
> >>> --<br>
> >>> Eliot Kimber<br>
> >>> Senior Solutions Architect<br>
> >>> "Bringing Strategy, Content, and Technology Together"<br>
</div>> >>> Main: <a href="tel:512.554.9368" value="+15125549368">512.554.9368</a> <tel:<a href="tel:512.554.9368" value="+15125549368">512.554.9368</a>><tel:<a href="tel:512.554.9368" value="+15125549368">512.554.9368</a><br>
> <tel:<a href="tel:512.554.9368" value="+15125549368">512.554.9368</a>>><br>
> >>> <a href="http://www.reallysi.com" target="_blank">www.reallysi.com</a> <<a href="http://www.reallysi.com" target="_blank">http://www.reallysi.com</a>><<a href="http://www.reallysi.com" target="_blank">http://www.reallysi.com</a>><br>
> >>> <a href="http://www.rsuitecms.com" target="_blank">www.rsuitecms.com</a><br>
> <<a href="http://www.rsuitecms.com" target="_blank">http://www.rsuitecms.com</a>><<a href="http://www.rsuitecms.com" target="_blank">http://www.rsuitecms.com</a>><br>
> >>><br>
> >>> _______________________________________________<br>
> >>> oXygen-user mailing list<br>
> >>> <a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a> <mailto:<a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>><br>
<div class="im">> >>> <a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
> >><br>
> ><br>
> _______________________________________________<br>
> oXygen-user mailing list<br>
</div>> <a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a> <mailto:<a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>><br>
<div class="HOEnZb"><div class="h5">> <a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
><br>
><br>
<br>
<br>
<br>
_______________________________________________<br>
oXygen-user mailing list<br>
<a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br>
<a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
</div></div></blockquote></div><br>