Thank you to everybody. First of all I replaced the XSL URL with my<br>
customized stylesheet and deleted the additional stylesheet (button additional XSLT stylesheet )<br>and Oxygen stopped to give me the error messages, but also I had to amend the namespaces otherwise no customization were executed.<br>
<br>Claudio<br><br><div class="gmail_quote">On 6 June 2011 18:32, Bob Stayton <span dir="ltr">&lt;<a href="mailto:bobs@sagehill.net">bobs@sagehill.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Claudio,<br>
I&#39;m not sure if this is the cause of your error message, but there is a mismatch<br>
between your XML file and your XSL customization. Your XML file indicates the document<br>
is in the DocBook namespace, but the stylesheet does not add the namespace prefix to<br>
the element names in the custom template.  So that template would be ignored during<br>
processing because the match attribute won&#39;t match any element in your document.  See<br>
this reference for more information:<br>
<br>
<a href="http://www.sagehill.net/docbookxsl/ProcesingDb5.html#Db5Xslt" target="_blank">http://www.sagehill.net/docbookxsl/ProcesingDb5.html#Db5Xslt</a><br>
<br>
Bob Stayton<br>
Sagehill Enterprises<br>
<a href="mailto:bobs@sagehill.net">bobs@sagehill.net</a><br>
<br>
<br>
----- Original Message -----<br>
From: &quot;Claudio Tubertini&quot; &lt;<a href="mailto:claudio.tubertini@archetipolibri.it">claudio.tubertini@archetipolibri.it</a>&gt;<br>
To: &lt;<a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>&gt;<br>
Sent: Sunday, June 05, 2011 10:15 PM<br>
Subject: [oXygen-user] R: Additional XSLT stylesheet in docbooktransformation<br>
<br>
<br>
&gt; Hi,<br>
&gt; The root element is book, actually the xml file is the following<br>
&gt; &lt;? xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;<br>
&gt;  &lt;book xml:lang=&quot;it&quot; xmlns=&quot;<a href="http://docbook.org/ns/docbook" target="_blank">http://docbook.org/ns/docbook</a>&quot; version=&quot;5.0&quot;&gt;<br>
&gt;    &lt;info&gt;<br>
&gt;     ...<br>
&gt;    &lt;/info&gt;<br>
&gt;    &lt;xi:include href=&quot;chapter1.xml&quot;<br>
&gt; xmlns:xi=&quot;<a href="http://www.w3.org/2001/XInclude" target="_blank">http://www.w3.org/2001/XInclude</a>&quot; /&gt;<br>
&gt;  &lt;/book&gt;<br>
&gt;<br>
&gt; Thenk you in advance for your help<br>
&gt;<br>
&gt; Claudio<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<br>
&gt;<br>
&gt; Da: <a href="mailto:oxygen-user-bounces@oxygenxml.com">oxygen-user-bounces@oxygenxml.com</a><br>
&gt; [mailto:<a href="mailto:oxygen-user-bounces@oxygenxml.com">oxygen-user-bounces@oxygenxml.com</a>] Per conto di Bob Stayton<br>
&gt; Inviato: domenica 5 giugno 2011 22.45<br>
&gt; A: Claudio Tubertini; <a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br>
&gt; Oggetto: Re: [oXygen-user] Additional XSLT stylesheet in<br>
&gt; docbooktransformation<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt; This is probably not an Oxygen issue, but a DocBook XSL issue.  The Docbook<br>
&gt; stylesheets generate an fo:root element and page sequences only for certain<br>
&gt; elements, and those are listed in the error message. What is the root<br>
&gt; element of the document you are processing?<br>
&gt;<br>
&gt; Bob Stayton<br>
&gt; Sagehill Enterprises<br>
&gt; <a href="mailto:bobs@sagehill.net">bobs@sagehill.net</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ----- Original Message -----<br>
&gt; From: Claudio Tubertini &lt;mailto:<a href="mailto:claudio.tubertini@gmail.com">claudio.tubertini@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br>
&gt; Sent: Saturday, June 04, 2011 8:15 AM<br>
&gt; Subject: [oXygen-user] Additional XSLT stylesheet in docbook<br>
&gt; transformation<br>
&gt;<br>
&gt; Dear Sirs<br>
&gt; I&#39;m trying to produce a PDF from a docbook xml file. I need to use a<br>
&gt; customization layer but I keep receiving an error message like this:<br>
&gt; [Saxon6.5.5] ERROR: Document root element for FO output must be one<br>
&gt; of the following elements: appendix article bibliography book chapter<br>
&gt; colophon dedication glossary index part preface qandaset refentry reference<br>
&gt; sect1 section set setindex<br>
&gt; and<br>
&gt; SystemID: /Users/Sandro/Documents/quaderni_storicamente/index.xml<br>
&gt; Engine name: Saxon6.5.5<br>
&gt; Severity: error<br>
&gt; Description: Cannot apply cascading transformation. Reason:<br>
&gt; Processing terminated by xsl:message at line 207<br>
&gt;<br>
&gt; Here is the xsl<br>
&gt; &lt;?xml version=&#39;1.0&#39;?&gt;<br>
&gt; &lt;xsl:stylesheet<br>
&gt;     xmlns:xsl=&quot;<a href="http://www.w3.org/1999/XSL/Transform" target="_blank">http://www.w3.org/1999/XSL/Transform</a>&quot;<br>
&gt;     xmlns:fo=&quot;<a href="http://www.w3.org/1999/XSL/Format" target="_blank">http://www.w3.org/1999/XSL/Format</a>&quot;<br>
&gt;     version=&quot;1.0&quot;&gt;<br>
&gt;     &lt;xsl:import href=&quot;fo/docbook.xsl&quot;/&gt;<br>
&gt;     &lt;xsl:template match=&quot;/book/chapter/para[@role = &#39;intro&#39;]&quot;&gt;<br>
&gt;         &lt;fo:block border=&quot;0.5pt solid blue&quot;<br>
&gt;             padding=&quot;3pt&quot;<br>
&gt;             xsl:use-attribute-sets=&quot;normal.para.spacing&quot;&gt;<br>
&gt;             &lt;xsl:apply-templates/&gt;<br>
&gt;         &lt;/fo:block&gt;<br>
&gt;     &lt;/xsl:template&gt;<br>
&gt; &lt;/xsl:stylesheet&gt;<br>
&gt;<br>
&gt; Thank you in advance<br>
&gt;<br>
&gt; Claudio<br>
&gt;<br>
&gt;<br>
&gt; ________________________________<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; oXygen-user mailing list<br>
&gt; <a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br>
&gt; <a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; oXygen-user mailing list<br>
&gt; <a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br>
&gt; <a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
oXygen-user mailing list<br>
<a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br>
<a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br>
</blockquote></div><br>