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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: RE: [docbook] xi:include Problem


Hi there,
It sounds like your xincludes aren't being resolved at all. Are you using a processor that can resolve xincludes and is it configured to do so? See this page for detailed information:

http://www.sagehill.net/docbookxsl/Xinclude.html

David
 

> -----Original Message-----
> From: Lily Galle [mailto:lily.galle@gmx.net] 
> Sent: Friday, January 16, 2009 5:37 AM
> To: docbook@lists.oasis-open.org
> Subject: [docbook] xi:include Problem
> 
> Hallo, 
> 
> I use "XEP". 
> 
> I have one problem wirh "xi:include". If I do not use 
> "xi:include", it works. If I take out one chapter, put this 
> chapter in another file, and use "xi:include href = ... ...", 
> then it does not work.  
> 
> Please help me!! Thank you very much! Do you need 
> "my_Stylesheet.xsl"? If yes, please tell me.
> 
> The following file "ok_docBook.xml" works with "my_Stylesheet.xsl": 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <book version="5.0" xml:lang="de" 
> xmlns="http://docbook.org/ns/docbook";
>     xmlns:xi="http://www.w3.org/2001/XInclude";>
>        
>     <title>The Big Book Title</title>    
>     
>     <chapter>        
>         <title>  Chapter Title </title>        
>         <para>
>             This is one paragraph.
>         </para>        
>     </chapter>
>     
>    </book>
> 
> 
> Now I take out the "chapter" and put it in another file 
> "test_chapter1.xml". You see the root element in this file is 
> "chapter":
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <chapter  version="5.0" xml:lang="de" 
> xmlns="http://docbook.org/ns/docbook";
>     xmlns:xi="http://www.w3.org/2001/XInclude";>
>         
>         <title>  Chapter Title </title>                
>         <para>
>             This is one paragraph.
>          </para>          
>  </chapter>
> 
> 
> I write the file "test_main_text.xml" like the following: 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <book version="5.0" xml:lang="de" 
> xmlns="http://docbook.org/ns/docbook";
>     xmlns:xi="http://www.w3.org/2001/XInclude";>
>        
>     <title>The Big Book Title</title> 
>     
>     <xi:include  href="chapter1.xml" 
> xmlns:xi="http://www.w3.org/2001/XInclude"/>
>     
>    </book> 
>     
> Now I apply "my_Stylesheet.xsl" to "test_main_text.xml". It 
> fails to transform. 
> One of the error messages is:    [error] Element 'fo:block' 
> cannot be a child of 'fo:root'.
> [error] Attribute 'color' cannot occur at element 'fo:block'.
> 
> 
> The error massages look like the following: 
> 
> (document [system-id 
> file:/C:/docbook-xsl-1.74.0/fo/test_main_Text.xml]
>   (validate 
>     [error] Element 'fo:block' cannot be a child of 'fo:root'.
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [warning] Attribute 'background-image' cannot have a 
> value of 
> "http://docbook.sourceforge.net/release/images/draft.png": 
> should be either 'inherit' or a URI: background-image="url(...)".
>     [error] Attribute 'color' cannot occur at element 'fo:block'.
>     [validation total: 2 errors, 19 warnings]
>     [error] com.renderx.xep.lib.FormatterException: Invalid 
> XSL FO source 
> 'file:/C:/docbook-xsl-1.74.0/fo/test_main_Text.xml': 2 errors 
> found during validation
>     [error] javax.xml.transform.TransformerException: 
> com.renderx.xep.lib.FormatterException: Invalid XSL FO source 
> 'file:/C:/docbook-xsl-1.74.0/fo/test_main_Text.xml': 2 errors 
> found during validation
>     [error] formatting failed
>     [error] javax.xml.transform.TransformerException: 
> com.renderx.xep.lib.FormatterException: Invalid XSL FO source 
> 'file:/C:/docbook-xsl-1.74.0/fo/test_main_Text.xml': 2 errors 
> found during validation
> 
> Formatting failed.
>     
> 
> 
> 
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s 
> mit allen: http://www.gmx.net/de/go/multimessenger
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
> 
> 


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