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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] MathML in DocBook 5 with Relax NG schema in Oxygen


Heloo George and Jirka,

Many thanks for the help you have been giving. I'm doing a trial of Oxygen, and so far really like it. I'm off for holiday, but plan to do as suggested when I return.

Regards,
Ellyn

George Cristian Bina wrote:
Hi Ellyn,

[...]
> <include href="C:/xml/DocBook/xml/rng/docbook.rng">
[...]
> <externalRef href="C:/xml/rng/mathml/mathml2.rng"/>

One problem is that you use file paths instead of URIs to specify the included/referred schemas.

Either specify them relatively or use full URIs like
file:/C:/xml/DocBook/xml/rng/docbook.rng
file:/C:/xml/rng/mathml/mathml2.rng

If you sill have problems let me know.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Ellyn Larson wrote:
Hello All,

I am trying to get MathML working with Oxygen for DocBook 5.0b6 with Relax NG schema. I am new to Relax NG schema and Oxygen, and probably doing something stupid.

I am referencing the DocBook V5.0, The Transition Guide:* Procedure 1. Extending the DocBook schema with the MathML schema, *using the the XML syntax of RELAX NG—dbmathml.rng. I have also followed the *Figure 2. Adding a new schema association in oXygen*

I am receiving the following validation error:

    SystemID: C:\xml\rng\dbmathml.rng
    Description: java.io.FileNotFoundException-C:\xml\rng\relaxng.dtd
    (The system cannot find the file specified)

**It appears to be looking for an XML DTD rather than a Relax NG schema. Below is the contents of dbmathml.rng.

Many thanks to anyone who can help me.

Ellyn Larson

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

    <?xml version="1.0" encoding="UTF-8"?>
    <grammar xmlns="http://relaxng.org/ns/structure/1.0">
               <include href="C:/xml/DocBook/xml/rng/docbook.rng">
            <define name="db._any.mml">
                <externalRef href="C:/xml/rng/mathml/mathml2.rng"/>
            </define>
                       <define name="db._any.svg">
                <externalRef href="svg/svg11.rng"/>
            </define>
                       <define name="db._any">
                <element>
                    <anyName>
                        <except>
                            <nsName ns="http://docbook.org/ns/docbook"/>
                            <nsName ns="http://www.w3.org/1999/xhtml"/>
                            <nsName
    ns="http://www.w3.org/1998/Math/MathML"/>
                            <nsName ns="http://www.w3.org/2000/svg"/>
                        </except>
                    </anyName>
                    <zeroOrMore>
                        <choice>
                            <attribute>
                                <anyName/>
                            </attribute>
                            <text/>
                            <ref name="db._any"/>
                        </choice>
                    </zeroOrMore>
                </element>
            </define>
        </include>
           </grammar>

-- 
Ellyn Larson
Portalyx B.V.
Windroosplein 102-104
1018 ZW Amsterdam
The Netherlands
Tel: +31 (0)20 620 2349
Fax: +31 (0)20 421 0064
Mobile: +31 (0)65 061 2365
Home Tel: +31 (0)228 596 311
Home Fax: +31 (0)228 596 902
Skype/ Yahoo: ellyn_larson
E-mail: elarson@portalyx.com <mailto:elarson@portalyx.com>
Web: http://www.portalyx.com <http://www.portalyx.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org





--
Ellyn Larson
Portalyx B.V.
Windroosplein 102-104
1018 ZW Amsterdam
The Netherlands
Tel: +31 (0)20 620 2349
Fax: +31 (0)20 421 0064
Mobile: +31 (0)65 061 2365
Home Tel: +31 (0)228 596 311
Home Fax: +31 (0)228 596 902
Skype/ Yahoo: ellyn_larson
E-mail: elarson@portalyx.com
Web: http://www.portalyx.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]