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"><<a href="mailto:bobs@sagehill.net">bobs@sagehill.net</a>></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'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'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: "Claudio Tubertini" <<a href="mailto:claudio.tubertini@archetipolibri.it">claudio.tubertini@archetipolibri.it</a>><br>
To: <<a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>><br>
Sent: Sunday, June 05, 2011 10:15 PM<br>
Subject: [oXygen-user] R: Additional XSLT stylesheet in docbooktransformation<br>
<br>
<br>
> Hi,<br>
> The root element is book, actually the xml file is the following<br>
> <? xml version="1.0" encoding="UTF-8" ?><br>
> <book xml:lang="it" xmlns="<a href="http://docbook.org/ns/docbook" target="_blank">http://docbook.org/ns/docbook</a>" version="5.0"><br>
> <info><br>
> ...<br>
> </info><br>
> <xi:include href="chapter1.xml"<br>
> xmlns:xi="<a href="http://www.w3.org/2001/XInclude" target="_blank">http://www.w3.org/2001/XInclude</a>" /><br>
> </book><br>
><br>
> Thenk you in advance for your help<br>
><br>
> Claudio<br>
><br>
><br>
> ______________________________<br>
><br>
> Da: <a href="mailto:oxygen-user-bounces@oxygenxml.com">oxygen-user-bounces@oxygenxml.com</a><br>
> [mailto:<a href="mailto:oxygen-user-bounces@oxygenxml.com">oxygen-user-bounces@oxygenxml.com</a>] Per conto di Bob Stayton<br>
> Inviato: domenica 5 giugno 2011 22.45<br>
> A: Claudio Tubertini; <a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br>
> Oggetto: Re: [oXygen-user] Additional XSLT stylesheet in<br>
> docbooktransformation<br>
><br>
><br>
> Hi,<br>
> This is probably not an Oxygen issue, but a DocBook XSL issue. The Docbook<br>
> stylesheets generate an fo:root element and page sequences only for certain<br>
> elements, and those are listed in the error message. What is the root<br>
> element of the document you are processing?<br>
><br>
> Bob Stayton<br>
> Sagehill Enterprises<br>
> <a href="mailto:bobs@sagehill.net">bobs@sagehill.net</a><br>
><br>
><br>
><br>
> ----- Original Message -----<br>
> From: Claudio Tubertini <mailto:<a href="mailto:claudio.tubertini@gmail.com">claudio.tubertini@gmail.com</a>><br>
> To: <a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br>
> Sent: Saturday, June 04, 2011 8:15 AM<br>
> Subject: [oXygen-user] Additional XSLT stylesheet in docbook<br>
> transformation<br>
><br>
> Dear Sirs<br>
> I'm trying to produce a PDF from a docbook xml file. I need to use a<br>
> customization layer but I keep receiving an error message like this:<br>
> [Saxon6.5.5] ERROR: Document root element for FO output must be one<br>
> of the following elements: appendix article bibliography book chapter<br>
> colophon dedication glossary index part preface qandaset refentry reference<br>
> sect1 section set setindex<br>
> and<br>
> SystemID: /Users/Sandro/Documents/quaderni_storicamente/index.xml<br>
> Engine name: Saxon6.5.5<br>
> Severity: error<br>
> Description: Cannot apply cascading transformation. Reason:<br>
> Processing terminated by xsl:message at line 207<br>
><br>
> Here is the xsl<br>
> <?xml version='1.0'?><br>
> <xsl:stylesheet<br>
> xmlns:xsl="<a href="http://www.w3.org/1999/XSL/Transform" target="_blank">http://www.w3.org/1999/XSL/Transform</a>"<br>
> xmlns:fo="<a href="http://www.w3.org/1999/XSL/Format" target="_blank">http://www.w3.org/1999/XSL/Format</a>"<br>
> version="1.0"><br>
> <xsl:import href="fo/docbook.xsl"/><br>
> <xsl:template match="/book/chapter/para[@role = 'intro']"><br>
> <fo:block border="0.5pt solid blue"<br>
> padding="3pt"<br>
> xsl:use-attribute-sets="normal.para.spacing"><br>
> <xsl:apply-templates/><br>
> </fo:block><br>
> </xsl:template><br>
> </xsl:stylesheet><br>
><br>
> Thank you in advance<br>
><br>
> Claudio<br>
><br>
><br>
> ________________________________<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>
><br>
><br>
><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>
><br>
><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>