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