Re: [xep-support]

From: Lily Galle <lily.galle@gmx.net>
Date: Fri Jan 16 2009 - 03:40:07 PST

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.
    

-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Fri Jan 16 04:12:33 2009

This archive was generated by hypermail 2.1.8 : Fri Jan 16 2009 - 04:12:38 PST