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] | [Elist Home]


Subject: DOCBOOK-APPS: 1.48 titlepage generation.


Trying to build an fo document with xsl stylesheets 1.48,
For the titlepage,
Using

<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
              base-stylesheet="/sgml/docbook/xsl148/fo/docbook.xsl">

<t:variable name="section.autonumber" select="true()"/>

<t:titlepage element="book" side="recto">
   <title predicate="[1]"/>
   <subtitle predicate="[1]"/>
   <author/>
   <authorgroup>
     <t:or>
       <corpauthor/>
       <author/>
       <editor/>
     </t:or>
   </authorgroup>
   <editor/>
   <releaseinfo/>
   <copyright/>
   <pubdate/>
   <revision/>
   <revhistory/>
   <abstract/>
</t:titlepage>

<t:biblioentry>
   <abbrev/>
   <title/>
   <t:or>
     <authorgroup/>
     <author/>
   </t:or>
   <biblioset/>
</t:biblioentry>

</t:templates>


I'm getting as output


<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- This stylesheet was created by template/titlepage.xsl; do not edit it 
by hand. -->

<xsl:import href="/sgml/docbook/xsl148/fo/docbook.xsl"/>

   <xsl:apply-templates select="corpauthor|author|editor" 
mode="book.titlepage.recto.auto.mode"/>
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

<xsl:template name="book.titlepage">

     <xsl:call-template name="book.titlepage.before.recto"/>
     <xsl:call-template name="book.titlepage.recto"/>
     <xsl:call-template name="book.titlepage.before.verso"/>
     <xsl:call-template name="book.titlepage.verso"/>
     <xsl:call-template name="book.titlepage.separator"/>

</xsl:template>
   <xsl:apply-templates select="authorgroup|author" 
mode=".titlepage.recto.auto.mode"/>

</xsl:stylesheet>

I.e. the line marked above is outside of any templates.

And Saxon is complaining:


Recoverable error
at xsl:element on line 182 of  template/titlepage.xsl:
   Invalid element name:
Recoverable error
at xsl:attribute on line 366 of template/titlepage.xsl:
   Cannot write an attribute node when no element start tag is open


probably the latter caused by the former.





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


Powered by eList eXpress LLC