Re: [docbook] Help needed with some errors and checking a docbook5 with xmllint

2018-05-31 Thread openhab.doc
Thanks to everyone for their feedback and tips. 

So far I have not used an XML editor because I thought I could port docbook4 
to 
docbook5 without it. In the meantime I have installed emacs and I'm starting 
to get used 
to it.

Now I have a few more questions, because the files are marked as not valid.

1.) The following is the header of the document I changed:

01  
02
03  
05  %darktable_ent;
06  ]>
07
08  http://docbook.org/ns/docbook; 
11  xmlns:xi="http://www.w3.org/2001/XInclude; 
12  xmlns:xlink="http://www.w3.org/1999/xlink;
13  xml:lang="en"
14  status="final">

Emacs mark version, xml:lang and status a non valid!
When I change as below Emacs accept it.

01  
02
03  
05  %darktable_ent;
06  ]>
07
08  http://docbook.org/ns/docbook; 
10  xmlns:xi="http://www.w3.org/2001/XInclude; 
11  xmlns:xlink="http://www.w3.org/1999/xlink;
12  xmlns:lang="en"
13  xmlns:status="final">

Is my change correkt?
The sample I found in the internet they alway use the non valid syntax.

2.) My second Problem is that emacs mark "*width*" in an informaltable as non 
valid. 

 

How do I have to change this in a way that it is accepted?

Thanks in advance
Pierre

Am Mittwoch, 30. Mai 2018, 23:46:54 CEST schrieb Peter Flynn:
> On 30/05/18 15:41, Peter Fleck wrote:
> > For your other errors, try putting  inside the  tag.
> 
> Are you using an XML editor to write this document?
> Don't try to write XML with Notepad or similar: use an XML editor.
> See http://xml.silmaril.ie/software.html#editors
> 
> ///Peter
> 
> -
> To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
> For additional commands, e-mail: docbook-h...@lists.oasis-open.org





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



Re: [docbook] Help needed with some errors and checking a docbook5 with xmllint

2018-05-30 Thread Peter Flynn
On 30/05/18 15:41, Peter Fleck wrote:
> For your other errors, try putting  inside the  tag.

Are you using an XML editor to write this document?
Don't try to write XML with Notepad or similar: use an XML editor.
See http://xml.silmaril.ie/software.html#editors

///Peter

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



Re: [docbook] Help needed with some errors and checking a docbook5 with xmllint

2018-05-30 Thread Peter Fleck
For your other errors, try putting  inside the  tag.

Peter

On 30 May 2018 at 16:38, Peter Fleck  wrote:

> Hi Pierre,
>
> You have a typo in your  -  It should be 
> Peter
>
> On 30 May 2018 at 16:19, openhab.doc  wrote:
>
>> Hi, need help checking a docbook5 xml file.
>>
>>
>>
>> When I run
>>
>>
>>
>> ´´´
>>
>> xsltproc --xinclude --output Test.html 
>> /home/mepi/Downloads/docbook-xsl-1.79.2/xhtml/docbook.xsl
>> MyBook.xml
>> ´´´
>>
>>
>>
>> I get following Error:
>>
>>
>>
>> ´´´
>>
>> MyBook.xml:60: namespace error : Namespace prefix xl for href on link is
>> not defined
>>If not, see http://www.gnu.org/licenses/;>
>> the
>>^
>> MyBook.xml:69: namespace error : Namespace prefix xl for href on link is
>> not defined
>>http://creativecommons.org/about/licenses/;>
>> th
>> ´´´
>>
>>
>>
>> What do I wrong?
>>
>> ^
>> When I try to check my File MyBook.xml with xmllint,
>>
>>
>>
>> ´´´
>>
>> xmllint --relaxng /usr/share/xml/docbook5/schema/rng/5.1/docbook.rng
>> MyBook.xml
>> ´´´
>>
>>
>>
>> I get following messages:
>>
>>
>>
>> ´´´
>>
>> MyBook.xml:18: element info: Relax-NG validity error : Element book has
>> extra content: info
>> MyBook.xml:13: element book: Relax-NG validity error : Expecting element
>> abstract, got book
>> MyBook.xml:13: element book: Relax-NG validity error : Did not expect
>> element book there
>> MyBook.xml:13: element book: Relax-NG validity error : Expecting element
>> audiodata, got book
>> MyBook.xml:13: element book: Relax-NG validity error : Expecting element
>> example, got book
>> MyBook.xml fails to validate
>> ´´´
>>
>>
>> What does the messages above mean?
>>
>>
>>
>> The MyBook.xml file looks like:
>>
>>
>>
>> ´´´
>>
>> 1 
>>
>> 2
>>
>> 3 >
>> 4 
>>
>> 5 %MyEntitys_ent;
>>
>> 6 ]>
>>
>> 7
>>
>> 8 >
>> 9 version="5.0"
>>
>> 10 xmlns="http://docbook.org/ns/docbook;
>>
>> 11 xmlns:xi="http://www.w3.org/2001/XInclude;
>>
>> 12 xmlns:xlink="http://www.w3.org/1999/xlink;
>>
>> 13 xml:lang="en">
>>
>> 14
>>
>> 15
>>
>> 16 My Book
>>
>> 17
>>
>> 18 
>>
>> 19
>>
>> 20 
>>
>> 21
>>
>> 22 
>>
>> 23 My Text
>>
>> 24 
>>
>> 25
>>
>> 26 
>>
>> 27
>>
>> 28 
>>
>> 29 2010-2012
>>
>> 30 Mr. X and me
>>
>> 31 
>>
>> 32
>>
>> 33 
>>
>> ...
>>
>> 60 see http://www.gnu.org/licenses/;> the GNU
>>
>> 61 homepage.
>>
>> ...
>> 211 
>>
>> ´´´
>>
>>
>>
>> Thanks
>>
>> Pierre
>>
>
>


Re: [docbook] Help needed with some errors and checking a docbook5 with xmllint

2018-05-30 Thread Peter Fleck
Hi Pierre,

You have a typo in your  -  wrote:

> Hi, need help checking a docbook5 xml file.
>
>
>
> When I run
>
>
>
> ´´´
>
> xsltproc --xinclude --output Test.html 
> /home/mepi/Downloads/docbook-xsl-1.79.2/xhtml/docbook.xsl
> MyBook.xml
> ´´´
>
>
>
> I get following Error:
>
>
>
> ´´´
>
> MyBook.xml:60: namespace error : Namespace prefix xl for href on link is
> not defined
>If not, see http://www.gnu.org/licenses/;>
> the
>^
> MyBook.xml:69: namespace error : Namespace prefix xl for href on link is
> not defined
>http://creativecommons.org/about/licenses/;>
> th
> ´´´
>
>
>
> What do I wrong?
>
> ^
> When I try to check my File MyBook.xml with xmllint,
>
>
>
> ´´´
>
> xmllint --relaxng /usr/share/xml/docbook5/schema/rng/5.1/docbook.rng
> MyBook.xml
> ´´´
>
>
>
> I get following messages:
>
>
>
> ´´´
>
> MyBook.xml:18: element info: Relax-NG validity error : Element book has
> extra content: info
> MyBook.xml:13: element book: Relax-NG validity error : Expecting element
> abstract, got book
> MyBook.xml:13: element book: Relax-NG validity error : Did not expect
> element book there
> MyBook.xml:13: element book: Relax-NG validity error : Expecting element
> audiodata, got book
> MyBook.xml:13: element book: Relax-NG validity error : Expecting element
> example, got book
> MyBook.xml fails to validate
> ´´´
>
>
> What does the messages above mean?
>
>
>
> The MyBook.xml file looks like:
>
>
>
> ´´´
>
> 1 
>
> 2
>
> 3 
> 4 
>
> 5 %MyEntitys_ent;
>
> 6 ]>
>
> 7
>
> 8 
> 9 version="5.0"
>
> 10 xmlns="http://docbook.org/ns/docbook;
>
> 11 xmlns:xi="http://www.w3.org/2001/XInclude;
>
> 12 xmlns:xlink="http://www.w3.org/1999/xlink;
>
> 13 xml:lang="en">
>
> 14
>
> 15
>
> 16 My Book
>
> 17
>
> 18 
>
> 19
>
> 20 
>
> 21
>
> 22 
>
> 23 My Text
>
> 24 
>
> 25
>
> 26 
>
> 27
>
> 28 
>
> 29 2010-2012
>
> 30 Mr. X and me
>
> 31 
>
> 32
>
> 33 
>
> ...
>
> 60 see http://www.gnu.org/licenses/;> the GNU
>
> 61 homepage.
>
> ...
> 211 
>
> ´´´
>
>
>
> Thanks
>
> Pierre
>


[docbook] Help needed with some errors and checking a docbook5 with xmllint

2018-05-30 Thread openhab.doc
Hi, need help checking a docbook5 xml file.

When I run 

´´´
xsltproc --xinclude --output Test.html 
/home/mepi/Downloads/docbook-xsl-1.79.2/xhtml/
docbook.xsl MyBook.xml 


I get following Error:

´´´
MyBook.xml:60: namespace error : Namespace prefix xl for href on link is not 
defined 
   If not, see http://www.gnu.org/licenses/;> the 
^ 
MyBook.xml:69: namespace error : Namespace prefix 
xl for href on link is not definedhttp://creativecommons.org/about/
licenses/"> th ´´´
 
*What do I wrong?*
^

When I try to check my File MyBook.xml with xmllint,

´´´
xmllint --relaxng /usr/share/xml/docbook5/schema/rng/5.1/docbook.rng MyBook.xml


I get following messages:

´´´
MyBook.xml:18: element info: Relax-NG validity error : Element book has extra 
content: 
info 
MyBook.xml:13: element book: Relax-NG validity error : Expecting element 
abstract, got 
book 

MyBook.xml:13: element book: Relax-NG validity error : Did not expect element 
book there 

MyBook.xml:13: element book: Relax-NG validity error : Expecting element 
audiodata, got 
book 

MyBook.xml:13: element book: Relax-NG validity error : Expecting element 
example, got 
book 

MyBook.xml fails to validate´´´

*What does the messages above mean?*

The MyBook.xml file looks like:

´´´
 1  
 2  
 3  
 5  %MyEntitys_ent;
 6  ]>
 7
 8  http://docbook.org/ns/docbook; 
11 xmlns:xi="http://www.w3.org/2001/XInclude; 
12  xmlns:xlink="http://www.w3.org/1999/xlink; 
13  xml:lang="en"> 
14
15
16   My Book
17 
18
19
20  
21
22
23  My Text
24
25
26  
27
28  
292010-2012
30Mr. X and me
31  
32
33
...
60  see http://www.gnu.org/licenses/;> the GNU
61  homepage.
...211  
´´´

Thanks
Pierre