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] xi:include Problem


If you are using XEP's convenience script to apply your XSL stylesheet, then 
you would need to edit that script to add support for an XInclude version of 
the XML parser, such as Xalan.  Or you could switch to two-step processing 
as described here:

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

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Lily Galle" <lily.galle@gmx.net>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, January 16, 2009 3:36 AM
Subject: [docbook-apps] 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-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
> 



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