[daisy] Book publishing XSL

Caleb Callaway caleb at autometrix.com
Mon Apr 9 10:47:28 CDT 2007


Ah, sorry for not communicating clearly...the paths issue was something I'd
commented on for later reference (your suggestion worked, though, thanks!)
The actual difficulty I'm having is with the <h2> headers not showing up in
the final book. I seem to be mis-understanding something about how XSL
stylesheets are processed.

-----Original Message-----
From: daisy-bounces at lists.cocoondev.org
[mailto:daisy-bounces at lists.cocoondev.org] On Behalf Of Vincent Mouton
Sent: Thursday, April 05, 2007 10:21 PM
To: 'Daisy: open source CMS - general mailinglist'
Subject: RE: [daisy] Book publishing XSL

> I know this isn't exactly a Daisy question, but I could really use 
> some help. This is a custom document style for generating books:
> 
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>   xmlns:d="http://outerx.org/daisy/1.0"
>   xmlns:einclude="http://outerx.org/daisy/1.0#externalinclude"
>   xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
>   xmlns:p="http://outerx.org/daisy/1.0#publisher">
> 
> 	<!-- for some reason relative paths don't work here... -->
> 	<xsl:import
> href="file:/C:/daisy-2.0/WikiData/books/publicationtypes/common/book-
> documen
> t-to-html.xsl" />
> 
> 	<xsl:template match="d:part[@name='Requirements']/html/body">
> 		<h2 class="requirements">Requirements</h2>
> 		<xsl:value-of select="."/>
> 	</xsl:template>
> 
> 	<xsl:template
> match="d:part[@name='SimpleDocumentContent']/html/body">
> 		<h2>Procedure</h2>
> 		<xsl:value-of select="."/>
> 	</xsl:template>
> 
> </xsl:stylesheet>
> 
> The headers are not making it to the book, and I dunno why. Any 
> thoughts?
> 
> Thanks much,
> Caleb
> 

And you did try with wikidata:books before? Like so:

<xsl:import
href="wikidata:books/publicationtypes/common/book-document-to-html.xsl" />

cheers,
v

_______________________________________________
daisy community mailing list
Professional Daisy support:
http://outerthought.org/site/services/daisy/daisysupport.html
mail to: daisy at lists.cocoondev.org
list information: http://lists.cocoondev.org/mailman/listinfo/daisy


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date: 4/5/2007
3:33 PM



More information about the daisy mailing list