Saxon 6.5.5: How to solve entities from the DTD

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Saxon 6.5.5: How to solve entities from the DTD

markus.sticker.epos

Hello,

 

I try to use Xinclude to get MML-File (MathML) into my XML.

But I’ve got this as error answer:

Error on line 5 column 16 of file:/V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/test3.mml:

  Error reported by XML parser: The entity "hairsp" was referenced, but not declared.

 

In the attachment you will find my environment.

Maybe there is a parameter or a commandline options to call?

Thanks for your help.

Kind regards

Markus

 

---------------------Commandline---------------------

v:\tools\java\jdk7\i586\jre\bin\java

    -cp v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\xercesImpl-2.11.0.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\resolver.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\xml-apis.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\xml-apis-ext.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\saxon.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\saxon-jdom.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\saxon-serializer.jar;

         v:\zfhpsys\tool_int\software_doku\dokusystem\serna\plugin\software_doku\example\temp\Source\saxon\

         -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration com.icl.saxon.StyleSheet

         -x org.apache.xml.resolver.tools.ResolvingXMLReader

         -y org.apache.xml.resolver.tools.ResolvingXMLReader

         -r org.apache.xml.resolver.tools.CatalogResolver

         -o V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/temp\Source\xml_files\NewMath1inkl.xml

          V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/NewMath1inkl.xml v:/zfhpsys/tool_int/software_doku/release/xslt/extractor_preprocess.xslt 

         language="en" show.remarks="1" flip.datatable.for.fo="0" create.interface.links="0" generate.mfl.id="1" temp_dir="V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/temp/Source"

---------------------Commandline---------------------

 

---------------------Command Messages---------------------

Error on line 5 column 16 of file:/V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/test3.mml:

  Error reported by XML parser: The entity "hairsp" was referenced, but not declared.

Error on line 13 column 95 of file:/V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/NewMath1inkl.xml:

  Error reported by XML parser: Error attempting to parse XML file (href='test3.mml').

Transformation failed: Run-time errors were reported

---------------------Command Messages---------------------

 

 

---------------------XML File---------------------

<?xml version='1.0' encoding='UTF-8'?>

<!-- This document was created with Syntext Serna Free. --><!DOCTYPE XMLBlock SYSTEM "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd" []>

<XMLBlock>

  <Title>&lt;New Math&gt;</Title>

  <Description>

    <Heading>Just a Test</Heading>

    <Content>Lebowski ipsum posuere neque, at dignissim.</Content>

    <Equation>

      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="test3.mml" encoding="XML"/>

    </Equation>

  </Description>

</XMLBlock>

---------------------XML File---------------------

 

---------------------MathML File---------------------

<math display = 'block' xmlns='http://www.w3.org/1998/Math/MathML'>

  <mrow>

    <mo>&hairsp;</mo>

    <mi>cbcb</mi>

    <mtext>&nbsp;</mtext>

    <mo>&plus;</mo>

    <mi>fdfs</mi>

    <mtext>&nbsp;</mtext>

    <mo>=</mo>

   <mtext>&nbsp;</mtext>

    <mrow>

      <mo>&int;</mo>

      <mrow>

        <mi>pcd</mi>

        <mtext>&nbsp;</mtext>

        <mrow>

          <mo>&sum;</mo>

          <mrow>

            <mn>5</mn>

            <mi>c</mi>

          </mrow>

        </mrow>

      </mrow>

    </mrow>

  </mrow>

</math>

---------------------MathML File---------------------

 

----------CatalogManager.proerties File----------

catalogs=c:/temp/catalog_saxon.xml

relative-catalogs=false

static-catalog=yes

catalog-class-name=org.apache.xml.resolver.Resolver

verbosity=1

----------CatalogManager.proerties File----------

 

All DTD Files are stored on the mentioned path.

----------catalog_saxon.xml File----------

<?xml version="1.0" ?>

<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"  "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" >

    <!-- XML Combine -->

  <rewriteURI uriStartString="file:///zfhpsys"          rewritePrefix="file:///V:/zfhpsys"/>

    <!-- Toolchain -->

  <rewriteSystem systemIdStartString="v:///"  rewritePrefix="file:///V:/"/>

  <rewriteSystem systemIdStartString="V:///"  rewritePrefix="file:///V:/"/>

  <rewriteSystem systemIdStartString="file:///"         rewritePrefix="file:///V:/"/>

  <rewriteSystem systemIdStartString="file:///zfhpsys"  rewritePrefix="file:///V:/zfhpsys"/>

  <rewriteSystem systemIdStartString="file:/zfhpsys"    rewritePrefix="file:///V:/zfhpsys"/>

    <!--Start Serna -->

  <rewriteSystem systemIdStartString="/"                rewritePrefix="file:///V:/"/>

 

  <system systemId="http://www.w3.org/1998/Math/MathML" uri="file:///V:/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/MathML/mathml2.dtd"/>

 

  <public publicId="-//W3C//DTD SVG 1.0//EN" uri="file:///V:/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/svg/svg10.dtd"/>

  <public publicId="-//W3C//DTD SVG 1.1//EN" uri="file:///V:/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/svg/svg11.dtd"/>

  <public publicId="-//OASIS//DTD DocBook XML V4.4//EN" uri="file:///V:/zfhpsys/tool_int/software_doku/release/xslt/foreign_nodes/DocBook4/doctype/docbookx.dtd"/>

  <public publicId="-//OASIS//DTD DocBook V5.0/EN" uri="file:///V:/tools/doctools/docbook/5.0/dtd/docbook.dtd"/>

  <public publicId="-//ASAM//DTD CONTAINER CATALOG:V3.0.0:LAI:IAI:SL:CC.DTD//EN" uri="file:///V:/zfhpsys/tool_int/software_doku/release/xslt/foreign_nodes/FSX/doctype/ccx/catalog_V3_0_0.sl.dtd"/>

  <public publicId="-//ASAM//DTD FUNCTIONAL SPECIFICATION EXCHANGE FORMAT:V1.1.0:LAI:IAI:XML:ML.FSX110.DTD//EN" uri="file:///V:/zfhpsys/tool_int/software_doku/release/xslt/foreign_nodes/FSX/doctype/fsx/fsx_v1_1_0.ml.dtd"/>

</catalog>

----------catalog_saxon.xml File----------

 

 

 

 



 


------------------------------------------------------------------------------

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Saxon 6.5.5: How to solve entities from the DTD

Michael Kay
This is nothing to do with Saxon: it’s a question about XML and XInclude.

When you XInclude a document, the document you include must be well-formed XML. Your MML file is not well-formed, because it contains an entity reference &hairsp; that’s not declared in the DTD of that document. Declaring it in the DTD of a different document doesn’t help.

Michael Kay
Saxonica


On 23 Jul 2015, at 13:59, [hidden email] wrote:

Hello,

 

I try to use Xinclude to get MML-File (MathML) into my XML.

But I’ve got this as error answer:

Error on line 5 column 16 of file:/V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/test3.mml:

  Error reported by XML parser: The entity "hairsp" was referenced, but not declared.

 

In the attachment you will find my environment.

Maybe there is a parameter or a commandline options to call?

Thanks for your help.

Kind regards

Markus

 

---------------------Commandline---------------------

v:\tools\java\jdk7\i586\jre\bin\java

    -cp v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\xercesImpl-2.11.0.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\resolver.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\xml-apis.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\xml-apis-ext.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\saxon.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\saxon-jdom.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\saxon-serializer.jar;

         v:\zfhpsys\tool_int\software_doku\dokusystem\serna\plugin\software_doku\example\temp\Source\saxon\

         -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration com.icl.saxon.StyleSheet

         -x org.apache.xml.resolver.tools.ResolvingXMLReader

         -y org.apache.xml.resolver.tools.ResolvingXMLReader

         -r org.apache.xml.resolver.tools.CatalogResolver

         -o V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/temp\Source\xml_files\NewMath1inkl.xml

          V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/NewMath1inkl.xml v:/zfhpsys/tool_int/software_doku/release/xslt/extractor_preprocess.xslt 

         language="en" show.remarks="1" flip.datatable.for.fo="0" create.interface.links="0" generate.mfl.id="1" temp_dir="V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/temp/Source"

---------------------Commandline---------------------

 

---------------------Command Messages---------------------

Error on line 5 column 16 of file:/V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/test3.mml:

  Error reported by XML parser: The entity "hairsp" was referenced, but not declared.

Error on line 13 column 95 of file:/V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/NewMath1inkl.xml:

  Error reported by XML parser: Error attempting to parse XML file (href='test3.mml').

Transformation failed: Run-time errors were reported

---------------------Command Messages---------------------

 

 

---------------------XML File---------------------

<?xml version='1.0' encoding='UTF-8'?>

<!-- This document was created with Syntext Serna Free. --><!DOCTYPE XMLBlock SYSTEM "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd" []>

<XMLBlock>

  <Title>&lt;New Math&gt;</Title>

  <Description>

    <Heading>Just a Test</Heading>

    <Content>Lebowski ipsum posuere neque, at dignissim.</Content>

    <Equation>

      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="test3.mml" encoding="XML"/>

    </Equation>

  </Description>

</XMLBlock>

---------------------XML File---------------------

 

---------------------MathML File---------------------

<math display = 'block' xmlns='http://www.w3.org/1998/Math/MathML'>

  <mrow>

    <mo>&hairsp;</mo>

    <mi>cbcb</mi>

    <mtext>&nbsp;</mtext>

    <mo>&plus;</mo>

    <mi>fdfs</mi>

    <mtext>&nbsp;</mtext>

    <mo>=</mo>

   <mtext>&nbsp;</mtext>

    <mrow>

      <mo>&int;</mo>

      <mrow>

        <mi>pcd</mi>

        <mtext>&nbsp;</mtext>

        <mrow>

          <mo>&sum;</mo>

          <mrow>

            <mn>5</mn>

            <mi>c</mi>

          </mrow>

        </mrow>

      </mrow>

    </mrow>

  </mrow>

</math>

---------------------MathML File---------------------

 

----------CatalogManager.proerties File----------

catalogs=c:/temp/catalog_saxon.xml

relative-catalogs=false

static-catalog=yes

catalog-class-name=org.apache.xml.resolver.Resolver

verbosity=1

----------CatalogManager.proerties File----------

 

All DTD Files are stored on the mentioned path.

----------catalog_saxon.xml File----------

<?xml version="1.0" ?>

<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"  "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" >

    <!-- XML Combine -->

  <rewriteURI uriStartString="file:///zfhpsys"          rewritePrefix="file:///V:/zfhpsys"/>

    <!-- Toolchain -->

  <rewriteSystem systemIdStartString="<a href="v:///" class="">v:///"  rewritePrefix="file:///V:/"/>

  <rewriteSystem systemIdStartString="<a href="V:///" class="">V:///"  rewritePrefix="file:///V:/"/>

  <rewriteSystem systemIdStartString="file:///"         rewritePrefix="file:///V:/"/>

  <rewriteSystem systemIdStartString="file:///zfhpsys"  rewritePrefix="file:///V:/zfhpsys"/>

  <rewriteSystem systemIdStartString="file:/zfhpsys"    rewritePrefix="file:///V:/zfhpsys"/>

    <!--Start Serna -->

  <rewriteSystem systemIdStartString="/"                rewritePrefix="file:///V:/"/>

 

  <system systemId="http://www.w3.org/1998/Math/MathML" uri="file:///V:/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/MathML/mathml2.dtd"/>

 

  <public publicId="-//W3C//DTD SVG 1.0//EN" uri="file:///V:/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/svg/svg10.dtd"/>

  <public publicId="-//W3C//DTD SVG 1.1//EN" uri="file:///V:/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/svg/svg11.dtd"/>

  <public publicId="-//OASIS//DTD DocBook XML V4.4//EN" uri="file:///V:/zfhpsys/tool_int/software_doku/release/xslt/foreign_nodes/DocBook4/doctype/docbookx.dtd"/>

  <public publicId="-//OASIS//DTD DocBook V5.0/EN" uri="file:///V:/tools/doctools/docbook/5.0/dtd/docbook.dtd"/>

  <public publicId="-//ASAM//DTD CONTAINER CATALOG:V3.0.0:LAI:IAI:SL:CC.DTD//EN" uri="file:///V:/zfhpsys/tool_int/software_doku/release/xslt/foreign_nodes/FSX/doctype/ccx/catalog_V3_0_0.sl.dtd"/>

  <public publicId="-//ASAM//DTD FUNCTIONAL SPECIFICATION EXCHANGE FORMAT:V1.1.0:LAI:IAI:XML:ML.FSX110.DTD//EN" uri="file:///V:/zfhpsys/tool_int/software_doku/release/xslt/foreign_nodes/FSX/doctype/fsx/fsx_v1_1_0.ml.dtd"/>

</catalog>

----------catalog_saxon.xml File----------

 

 

 

 



 

------------------------------------------------------------------------------
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Saxon 6.5.5: How to solve entities from the DTD

markus.sticker.epos

Hello,

 

thanks for your answer.

The entities are declared by the MathML DTD.

This DTD contains a lot of entities.

http://www.w3.org/Math/DTD/mathml2.tgz

è Iso8879/isopub.ent

 

So what will help regarding this issue? Is declaring it on
the main document the right way?

(I doesn’t think so.)

 

Thanks

Markus

 

 

 

 

Von: Michael Kay [mailto:[hidden email]]
Gesendet: Donnerstag, 23. Juli 2015 16:20
An: Mailing list for the SAXON XSLT and XQuery processor
Betreff: Re: [saxon] Saxon 6.5.5: How to solve entities from the DTD

 

This is nothing to do with Saxon: it’s a question about XML and XInclude.

 

When you XInclude a document, the document you include must be well-formed XML. Your MML file is not well-formed, because it contains an entity reference &hairsp; that’s not declared in the DTD of that document. Declaring it in the DTD of a different document doesn’t help.

 

Michael Kay

Saxonica

 

 

On 23 Jul 2015, at 13:59, [hidden email] wrote:

 

Hello,

 

I try to use Xinclude to get MML-File (MathML) into my XML.

But I’ve got this as error answer:

Error on line 5 column 16 of file:/V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/test3.mml:

  Error reported by XML parser: The entity "hairsp" was referenced, but not declared.

 

In the attachment you will find my environment.

Maybe there is a parameter or a commandline options to call?

Thanks for your help.

Kind regards

Markus

 

---------------------Commandline---------------------

v:\tools\java\jdk7\i586\jre\bin\java

    -cp v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\xercesImpl-2.11.0.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\resolver.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\xml-apis.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\xml-apis-ext.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\saxon.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\saxon-jdom.jar;

         v:\zfhpsys\tool_int\software_doku\release\bin\tools\lib\saxon-serializer.jar;

         v:\zfhpsys\tool_int\software_doku\dokusystem\serna\plugin\software_doku\example\temp\Source\saxon\

         -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration com.icl.saxon.StyleSheet

         -x org.apache.xml.resolver.tools.ResolvingXMLReader

         -y org.apache.xml.resolver.tools.ResolvingXMLReader

         -r org.apache.xml.resolver.tools.CatalogResolver

         -o V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/temp\Source\xml_files\NewMath1inkl.xml

          V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/NewMath1inkl.xml v:/zfhpsys/tool_int/software_doku/release/xslt/extractor_preprocess.xslt 

         language="en" show.remarks="1" flip.datatable.for.fo="0" create.interface.links="0" generate.mfl.id="1" temp_dir="V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/temp/Source"

---------------------Commandline---------------------

 

---------------------Command Messages---------------------

Error on line 5 column 16 of file:/V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/test3.mml:

  Error reported by XML parser: The entity "hairsp" was referenced, but not declared.

Error on line 13 column 95 of file:/V:/zfhpsys/tool_int/software_doku/dokusystem/serna/plugin/software_doku/example/NewMath1inkl.xml:

  Error reported by XML parser: Error attempting to parse XML file (href='test3.mml').

Transformation failed: Run-time errors were reported

---------------------Command Messages---------------------

 

 

---------------------XML File---------------------

<?xml version='1.0' encoding='UTF-8'?>

<!-- This document was created with Syntext Serna Free. --><!DOCTYPE XMLBlock SYSTEM "/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/XMLBlock/XMLBlock.dtd" []>

<XMLBlock>

  <Title>&lt;New Math&gt;</Title>

  <Description>

    <Heading>Just a Test</Heading>

    <Content>Lebowski ipsum posuere neque, at dignissim.</Content>

    <Equation>

      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="test3.mml" encoding="XML"/>

    </Equation>

  </Description>

</XMLBlock>

---------------------XML File---------------------

 

---------------------MathML File---------------------

<math display = 'block' xmlns='http://www.w3.org/1998/Math/MathML'>

  <mrow>

    <mo>&hairsp;</mo>

    <mi>cbcb</mi>

    <mtext>&nbsp;</mtext>

    <mo>&plus;</mo>

    <mi>fdfs</mi>

    <mtext>&nbsp;</mtext>

    <mo>=</mo>

   <mtext>&nbsp;</mtext>

    <mrow>

      <mo>&int;</mo>

      <mrow>

        <mi>pcd</mi>

        <mtext>&nbsp;</mtext>

        <mrow>

          <mo>&sum;</mo>

          <mrow>

            <mn>5</mn>

            <mi>c</mi>

          </mrow>

        </mrow>

      </mrow>

    </mrow>

  </mrow>

</math>

---------------------MathML File---------------------

 

----------CatalogManager.proerties File----------

catalogs=c:/temp/catalog_saxon.xml

relative-catalogs=false

static-catalog=yes

catalog-class-name=org.apache.xml.resolver.Resolver

verbosity=1

----------CatalogManager.proerties File----------

 

All DTD Files are stored on the mentioned path.

----------catalog_saxon.xml File----------

<?xml version="1.0" ?>

<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"  "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" >

    <!-- XML Combine -->

  <rewriteURI uriStartString="<a href="file:///\\zfhpsys">file:///zfhpsys"          rewritePrefix="<a href="file:///V:\zfhpsys">file:///V:/zfhpsys"/>

    <!-- Toolchain -->

  <rewriteSystem systemIdStartString="<a href="v://">v:///"  rewritePrefix="<a href="file:///V:\">file:///V:/"/>

  <rewriteSystem systemIdStartString="<a href="V://">V:///"  rewritePrefix="<a href="file:///V:\">file:///V:/"/>

  <rewriteSystem systemIdStartString="<a href="file:///\\">file:///"         rewritePrefix="<a href="file:///V:\">file:///V:/"/>

  <rewriteSystem systemIdStartString="<a href="file:///\\zfhpsys">file:///zfhpsys"  rewritePrefix="<a href="file:///V:\zfhpsys">file:///V:/zfhpsys"/>

  <rewriteSystem systemIdStartString="file:/zfhpsys"    rewritePrefix="<a href="file:///V:\zfhpsys">file:///V:/zfhpsys"/>

    <!--Start Serna -->

  <rewriteSystem systemIdStartString="/"                rewritePrefix="<a href="file:///V:\">file:///V:/"/>

 

  <system systemId="http://www.w3.org/1998/Math/MathML" uri="<a href="file:///V:\zfhpsys\tool_int\software_doku\dokusystem\epic\custom\doctypes\MathML\mathml2.dtd">file:///V:/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/MathML/mathml2.dtd"/>

 

  <public publicId="-//W3C//DTD SVG 1.0//EN" uri="<a href="file:///V:\zfhpsys\tool_int\software_doku\dokusystem\epic\custom\doctypes\svg\svg10.dtd">file:///V:/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/svg/svg10.dtd"/>

  <public publicId="-//W3C//DTD SVG 1.1//EN" uri="<a href="file:///V:\zfhpsys\tool_int\software_doku\dokusystem\epic\custom\doctypes\svg\svg11.dtd">file:///V:/zfhpsys/tool_int/software_doku/dokusystem/epic/custom/doctypes/svg/svg11.dtd"/>

  <public publicId="-//OASIS//DTD DocBook XML V4.4//EN" uri="<a href="file:///V:\zfhpsys\tool_int\software_doku\release\xslt\foreign_nodes\DocBook4\doctype\docbookx.dtd">file:///V:/zfhpsys/tool_int/software_doku/release/xslt/foreign_nodes/DocBook4/doctype/docbookx.dtd"/>

  <public publicId="-//OASIS//DTD DocBook V5.0/EN" uri="<a href="file:///V:\tools\doctools\docbook\5.0\dtd\docbook.dtd">file:///V:/tools/doctools/docbook/5.0/dtd/docbook.dtd"/>

  <public publicId="-//ASAM//DTD CONTAINER CATALOG:V3.0.0:LAI:IAI:SL:CC.DTD//EN" uri="<a href="file:///V:\zfhpsys\tool_int\software_doku\release\xslt\foreign_nodes\FSX\doctype\ccx\catalog_V3_0_0.sl.dtd">file:///V:/zfhpsys/tool_int/software_doku/release/xslt/foreign_nodes/FSX/doctype/ccx/catalog_V3_0_0.sl.dtd"/>

  <public publicId="-//ASAM//DTD FUNCTIONAL SPECIFICATION EXCHANGE FORMAT:V1.1.0:LAI:IAI:XML:ML.FSX110.DTD//EN" uri="<a href="file:///V:\zfhpsys\tool_int\software_doku\release\xslt\foreign_nodes\FSX\doctype\fsx\fsx_v1_1_0.ml.dtd">file:///V:/zfhpsys/tool_int/software_doku/release/xslt/foreign_nodes/FSX/doctype/fsx/fsx_v1_1_0.ml.dtd"/>

</catalog>

----------catalog_saxon.xml File----------

 

 

 

 




 

------------------------------------------------------------------------------
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help

 


------------------------------------------------------------------------------

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Saxon 6.5.5: How to solve entities from the DTD

Martin Honnen-2
[hidden email] wrote:

> The entities are declared by the MathML DTD.
>
> This DTD contains a lot of entities.
>
> http://www.w3.org/Math/DTD/mathml2.tgz
>
> èIso8879/isopub.ent
>
> So what will help regarding this issue? Is declaring it on
> the main document the right way?
>
> (I doesn’t think so.)


You need to make sure that any file using a MathML entity reference has
a DOCTYPE node loading/including the list of defined entities. So the
below snippet that uses all those entity references needs to be fixed to
declare all referenced entities.

>     ---------------------MathML File---------------------
>
>     <math display = 'block' xmlns='http://www.w3.org/1998/Math/MathML'>
>
>        <mrow>
>
>          <mo>&hairsp;</mo>
>
>          <mi>cbcb</mi>
>
>          <mtext>&nbsp;</mtext>
>
>          <mo>&plus;</mo>
>
>          <mi>fdfs</mi>
>
>          <mtext>&nbsp;</mtext>
>
>          <mo>=</mo>
>
>         <mtext>&nbsp;</mtext>
>
>          <mrow>
>
>            <mo>&int;</mo>
>
>            <mrow>
>
>              <mi>pcd</mi>
>
>              <mtext>&nbsp;</mtext>
>
>              <mrow>
>
>                <mo>&sum;</mo>
>
>                <mrow>
>
>                  <mn>5</mn>
>
>                  <mi>c</mi>
>
>                </mrow>
>
>              </mrow>
>
>            </mrow>
>
>          </mrow>
>
>        </mrow>
>
>     </math>
>
>     ---------------------MathML File---------------------


------------------------------------------------------------------------------
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Saxon 6.5.5: How to solve entities from the DTD

markus.sticker.epos
Thanks Martin.
That was it - Heureka !
Best regards
Markus

-----Ursprüngliche Nachricht-----
Von: Martin Honnen [mailto:[hidden email]]
Gesendet: Freitag, 24. Juli 2015 10:29
An: Mailing list for the SAXON XSLT and XQuery processor
Betreff: Re: [saxon] Saxon 6.5.5: How to solve entities from the DTD

[hidden email] wrote:

> The entities are declared by the MathML DTD.
>
> This DTD contains a lot of entities.
>
> http://www.w3.org/Math/DTD/mathml2.tgz
>
> èIso8879/isopub.ent
>
> So what will help regarding this issue? Is declaring it on the main
> document the right way?
>
> (I doesn't think so.)


You need to make sure that any file using a MathML entity reference has a DOCTYPE node loading/including the list of defined entities. So the below snippet that uses all those entity references needs to be fixed to declare all referenced entities.

>     ---------------------MathML File---------------------
>
>     <math display = 'block'
> xmlns='http://www.w3.org/1998/Math/MathML'>
>
>        <mrow>
>


------------------------------------------------------------------------------
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Saxon 6.5.5: How to solve entities from the DTD

David Carlisle
In reply to this post by markus.sticker.epos
On 23/07/2015 16:05, [hidden email] wrote:

> thanks for your answer.
>
> The entities are declared by the MathML DTD.
>
> This DTD contains a lot of entities.
>
> http://www.w3.org/Math/DTD/mathml2.tgz
>
> èIso8879/isopub.ent
>

unrelated to saxon but please don't use the entities defined there.

After the unicode submission was finalised and some bugs fixed
the final entity set as used by mathml3 and html5 (and matching
the positions of the glyphs in unicode fonts) is in the mathml 3 dtd or
simpler if you just want a file loading the entities use

        <!ENTITY % htmlmathml-f PUBLIC
          "-//W3C//ENTITIES HTML MathML Set//EN//XML"
          "htmlmathml-f.ent"
        >
        %htmlmathml-f;

where htmlmathml-f.ent is a copy of

http://www.w3.org/2003/entities/2007/htmlmathml-f.ent

David
(editor of these enitity set files)
________________________________


The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is:

Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.



This e-mail has been scanned for all viruses by Microsoft Office 365.

________________________________

------------------------------------------------------------------------------
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Saxon 6.5.5: How to solve entities from the DTD

David Carlisle
In reply to this post by markus.sticker.epos
On 23/07/2015 16:05, [hidden email] wrote:

> thanks for your answer.
>
> The entities are declared by the MathML DTD.
>
> This DTD contains a lot of entities.
>
> http://www.w3.org/Math/DTD/mathml2.tgz
>
> èIso8879/isopub.ent
>

unrelated to saxon but please don't use the entities defined there.

After the unicode submission was finalised and some bugs fixed
the final entity set as used by mathml3 and html5 (and matching
the positions of the glyphs in unicode fonts) is in the mathml 3 dtd or
simpler if you just want a file loading the entities use

        <!ENTITY % htmlmathml-f PUBLIC
          "-//W3C//ENTITIES HTML MathML Set//EN//XML"
          "htmlmathml-f.ent"
        >
        %htmlmathml-f;

where htmlmathml-f.ent is a copy of

http://www.w3.org/2003/entities/2007/htmlmathml-f.ent

David
(editor of these entity set files)
________________________________


The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is:

Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.



This e-mail has been scanned for all viruses by Microsoft Office 365.

________________________________

------------------------------------------------------------------------------
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help