<div>Hmm, that's interesting. </div><div><br></div><div>Radu, after reading your email, I checked my copy of mathml/catalog.xml (Oxygen version 12) and it has this already:</div><div><br></div><div> <rewriteSystem systemIdStartString="<a href="http://www.w3.org/TR/MathML2/dtd/">http://www.w3.org/TR/MathML2/dtd/</a>" rewritePrefix="content/dtd/"/></div>
<div><br></div><div>which should be enough to map xhtml-math11-f.dtd to the dtd/xhtml-math11-f.dtd file there, and I checked, and it does exist. </div><div><br></div><div>So then I discovered that I don't think this mathml catalog is being loaded. I added </div>
<div><br></div><div> <nextCatalog catalog="mathml2/catalog.xml"/></div><div><br></div><div>to my Oxygen master frameworks catalog, and it started working. Is it possible this has been missing all along? Seems hard to understand.</div>
<div><br></div><div>I also tried with the Oxygen 11 framework catalog, which I happen to still have still installed, and got the same results -- this mathml dtd was not resolved.</div><div><br></div><br><div class="gmail_quote">
On Mon, Jan 30, 2012 at 3:22 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 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" 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>
<span class="HOEnZb"><font color="#888888"><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>
</font></span><div class="HOEnZb"><div class="h5"><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 providing a<br>
> local copy would be best, but since Oxygen caches it on first reference, I<br>
> don't think it's a big deal to go to the Internet for it (as 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>> 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 think. But, of<br>
>> course, rather than resolving it from w3c, you should download a local copy<br>
>> and put an entry to it in Oxygen's catalog file, using the public id. Or, if<br>
>> you'd rather not modify Oxygen's catalog file, create your own 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 Catalog<br>
>> V1.0//EN"<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 pointing to this<br>
>> catalog file.<br>
>><br>
>> That's how I'd fix it anyway -- not sure if it's the easiest/best way or not.<br>
>> :)<br>
>><br>
>><br>
>><br>
>> On Sat, Jan 28, 2012 at 8:47 AM, Eliot Kimber<<a href="mailto:ekimber@reallysi.com">ekimber@reallysi.com</a>> wrote:<br>
>>> I am trying to process local copies of HTML files that have 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 to do so,<br>
>>> which causes timeout delays and then failure of my transform, 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>
>>> 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>><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>><br>
>>> <a href="http://www.rsuitecms.com" target="_blank">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><br>
>>> <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>
<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>