Tracker: Bugs

5 titlepage spec file: undefined namespace exsl - ID: 2836220
Last Update: Comment added ( murrayc )

Following the instructions here,
http://www.sagehill.net/docbookxsl/TitlePageNewElems.html
produces this error when trying to generate xhtml:

compilation error: file html_customization_layer_titlepage.xsl line 3
element stylesheet
xsl:exclude-result-prefixes : undefined namespace exsl


I think that's because the generated html_customization_layer_titlepage.xsl
file is missing xmlns:exsl="http://exslt.org/common" from the
xsl:stylesheet node. Adding that fixes it for me. Here's the start of that
file, generated from
http://docbook.sourceforge.net/release/xsl/current/xhtml/titlepage.template
s.xsl
and
http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl
:

<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" exclude-result-prefixes="exsl"><xsl:template
name="article.titlepage.recto"><xsl:choose><xsl:when
test="articleinfo/title">


The fo version doesn't have this problem.


Murray Cumming ( murrayc ) - 2009-08-12 13:28

5

Closed

Works For Me

Nobody/Anonymous

XSL

output: HTML

Public


Comments ( 6 )

Date: 2009-08-20 13:17
Sender: murraycAccepting Donations

Thanks for the advice and sorry for being confused. It's all working fine
now.


Date: 2009-08-16 10:18
Sender: mzjnProject Admin

| There is one in the _html_ directory (not the _xhtml_
| directory). Should I use that with the xhtml stylesheet?

Yes, use that for XHTML too.



Date: 2009-08-14 14:48
Sender: murraycAccepting Donations

> No. You use titlepage.templates.xml (NOT titlepage.templates.xsl) as the
> starting point of a custom titlepage spec file. Please read the docs
> again.

Ah, yes, sorry, the documentation does indeed say "To create your title
page spec file for FO output, you can copy fo/titlepage.templates.xml". I
did use the .xml file for fo, but seem to be using an .xsl file for xhtml.

However, though the fo/ directory has an .xml fie and and .xsl file:
http://docbook.sourceforge.net/release/xsl/current/fo/,
there is no titlepage.templates.xml in the xhtml directory:
http://docbook.sourceforge.net/release/xsl/current/xhtml/

There is one in the _html_ directory (not the _xhtml_ directory). Should I
use that with the xhtml stylesheet?



Date: 2009-08-14 14:11
Sender: mzjnProject Admin

| However, titlepage.templates.xsl may be used as the start
| of a custom titlepage spec file, right?

No. You use titlepage.templates.xml (NOT titlepage.templates.xsl) as the
starting point of a custom titlepage spec file. Please read the docs
again.

| I guess that this has just been corrected in the svn trunk version
| already. Thanks for checking.

I don't know what you mean by this. You have not demonstrated any bug that
needs fixing.



Date: 2009-08-14 10:14
Sender: murraycAccepting Donations

> From your description it looks as if you are applying
> template/titlepage.xsl to titlepage.templates.xsl. That is not right.
You
> should apply template/titlepage.xsl to your custom titlepage spec file.

However, titlepage.templates.xsl may be used as the start of a custom
titlepage spec file, right? That's working fine for me with fo, and for
xhtml if I make the correction.

I guess that this has just been corrected in the svn trunk version
already. Thanks for checking.


Date: 2009-08-12 15:18
Sender: mzjnProject Admin

I can't reproduce this.

From your description it looks as if you are applying
template/titlepage.xsl to titlepage.templates.xsl. That is not right. You
should apply template/titlepage.xsl to your custom titlepage spec file.



Attached File

No Files Currently Attached

Changes ( 7 )

Field Old Value Date By
status_id Open 2009-08-14 14:11 mzjn
close_date - 2009-08-14 14:11 mzjn
status_id Pending 2009-08-14 10:14 murrayc
close_date 2009-08-12 15:18 2009-08-14 10:14 murrayc
resolution_id None 2009-08-12 15:18 mzjn
close_date - 2009-08-12 15:18 mzjn
status_id Open 2009-08-12 15:18 mzjn