Re: [docbook-apps] NVDL, DocBook, and MathML

2016-02-10 Thread Bob Stayton

Great, that worked just fine.  Thanks.

Bob Stayton
Sagehill Enterprises
b...@sagehill.net

On 2/9/2016 1:11 AM, George Bina wrote:

http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0;
startMode="docbook">
 
 http://docbook.org/ns/docbook;>
 
 
 http://www.w3.org/1998/Math/MathML;>
 
 
 
 



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



Re: [docbook-apps] NVDL, DocBook, and MathML

2016-02-09 Thread Dave Pawson
The obvious question George - why doesn't the docbook
section need the attach?

Curious!
regards

On 9 February 2016 at 09:11, George Bina  wrote:
> Hi Bob,
>
> Try adding an attach action on the MathML namespace. This will attach the
> content in MathML to the validation candidate triggered by the  schema="docbook.rng"/> action. Change the NVDL script as below:
>
> http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0;
> startMode="docbook">
> 
> http://docbook.org/ns/docbook;>
> 
> 
> http://www.w3.org/1998/Math/MathML;>
> 
> 
> 
> 
> 
>
> Best Regards,
> George
> --
> George Cristian Bina
>  XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com
>
>
> On 09/02/16 02:33, Bob Stayton wrote:
>>
>> I'm having a problem trying to process DocBook 5 documents using NVDL in
>> order to validate DocBook content that has MathML content within
>> equation or inlineequation.  The DocBook validation side is failing, but
>> only under NVDL.
>>
>> The DocBook rng schema for inlineequation is as follows:
>>
>> 
>>
>>   
>>  
>> 
>>  
>>  
>> 
>>  
>>   
>>   
>>  
>>   
>>
>> 
>>
>> This schema specifies either a) inlinemediaobject or mathphrase, or b)
>> some MathML elements.  It *allows* MathML, but it does not validate it
>> against the MathML DTD.  NVDL is capable of doing that.  But ...
>>
>> When I set up NVDL using a schema like this:
>>
>> http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0;
>> startMode="docbook">
>>  
>>  http://docbook.org/ns/docbook;>
>>  
>>  
>>  http://www.w3.org/1998/Math/MathML;>
>>  
>>  
>>  
>> 
>>
>> This DocBook content validates against docbook.rng:
>>
>> 
>>http://www.w3.org/1998/Math/MathML;>
>>  ...
>>
>> 
>>
>> But when processed with NVDL, it fails with this message:
>>
>> Engine name: Jing
>> Severity: error
>> Description: element "inlineequation" incomplete; expected element
>> "alt", "inlinemediaobject" or "mathphrase" or an element from another
>> namespace
>>
>> I think what is happening is that Jing has sent the  element to be
>> validated against the MathML schema, and then it sends the remains of
>> the inlineequation element to be validated against the DocBook schema.
>> But now inlineequation is empty, and fails validation.
>>
>> I find if I insert an empty  inside inlineequation, then I
>> can work around this error.  Does anyone have any other ideas? That is,
>> short of customizing the docbook equation elements to allow them to be
>> empty.
>>
>
> -
> To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
>



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

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



Re: [docbook-apps] NVDL, DocBook, and MathML

2016-02-09 Thread George Bina

Hi Bob,

Try adding an attach action on the MathML namespace. This will attach 
the content in MathML to the validation candidate triggered by the 
 action. Change the NVDL script as below:


http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0; 
startMode="docbook">


http://docbook.org/ns/docbook;>


http://www.w3.org/1998/Math/MathML;>






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

On 09/02/16 02:33, Bob Stayton wrote:

I'm having a problem trying to process DocBook 5 documents using NVDL in
order to validate DocBook content that has MathML content within
equation or inlineequation.  The DocBook validation side is failing, but
only under NVDL.

The DocBook rng schema for inlineequation is as follows:


   
  
 

 
 

 
  
  
 
  
   


This schema specifies either a) inlinemediaobject or mathphrase, or b)
some MathML elements.  It *allows* MathML, but it does not validate it
against the MathML DTD.  NVDL is capable of doing that.  But ...

When I set up NVDL using a schema like this:

http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0;
startMode="docbook">
 
 http://docbook.org/ns/docbook;>
 
 
 http://www.w3.org/1998/Math/MathML;>
 
 
 


This DocBook content validates against docbook.rng:


   http://www.w3.org/1998/Math/MathML;>
 ...
   


But when processed with NVDL, it fails with this message:

Engine name: Jing
Severity: error
Description: element "inlineequation" incomplete; expected element
"alt", "inlinemediaobject" or "mathphrase" or an element from another
namespace

I think what is happening is that Jing has sent the  element to be
validated against the MathML schema, and then it sends the remains of
the inlineequation element to be validated against the DocBook schema.
But now inlineequation is empty, and fails validation.

I find if I insert an empty  inside inlineequation, then I
can work around this error.  Does anyone have any other ideas? That is,
short of customizing the docbook equation elements to allow them to be
empty.



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



Re: [docbook-apps] NVDL, DocBook, and MathML

2016-02-09 Thread George Bina

Hi Dave,

A DocBook document most probably contains only one 
http://docbook.org/ns/docbook section which has some other sections in 
the http://www.w3.org/1998/Math/MathML or other namespaces, like SVG 
maybe. The MathML does not contain DocBook further, if that was the case 
then we should have added maybe additional modes and decide what exactly 
we want to validate.


To account for other namespaces, like SVG, one may add also a namespace 
rule that will attach possible content in other namespaces to the 
current validation candidates:

  

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

On 09/02/16 12:04, Dave Pawson wrote:

The obvious question George - why doesn't the docbook
section need the attach?

Curious!
regards

On 9 February 2016 at 09:11, George Bina  wrote:

Hi Bob,

Try adding an attach action on the MathML namespace. This will attach the
content in MathML to the validation candidate triggered by the  action. Change the NVDL script as below:

http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0;
startMode="docbook">
 
 http://docbook.org/ns/docbook;>
 
 
 http://www.w3.org/1998/Math/MathML;>
 
 
 
 


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


On 09/02/16 02:33, Bob Stayton wrote:


I'm having a problem trying to process DocBook 5 documents using NVDL in
order to validate DocBook content that has MathML content within
equation or inlineequation.  The DocBook validation side is failing, but
only under NVDL.

The DocBook rng schema for inlineequation is as follows:

 

   
  
 
  
  
 
  
   
   
  
   

 

This schema specifies either a) inlinemediaobject or mathphrase, or b)
some MathML elements.  It *allows* MathML, but it does not validate it
against the MathML DTD.  NVDL is capable of doing that.  But ...

When I set up NVDL using a schema like this:

http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0;
startMode="docbook">
  
  http://docbook.org/ns/docbook;>
  
  
  http://www.w3.org/1998/Math/MathML;>
  
  
  


This DocBook content validates against docbook.rng:


http://www.w3.org/1998/Math/MathML;>
  ...



But when processed with NVDL, it fails with this message:

Engine name: Jing
Severity: error
Description: element "inlineequation" incomplete; expected element
"alt", "inlinemediaobject" or "mathphrase" or an element from another
namespace

I think what is happening is that Jing has sent the  element to be
validated against the MathML schema, and then it sends the remains of
the inlineequation element to be validated against the DocBook schema.
But now inlineequation is empty, and fails validation.

I find if I insert an empty  inside inlineequation, then I
can work around this error.  Does anyone have any other ideas? That is,
short of customizing the docbook equation elements to allow them to be
empty.



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







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