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

Subject: Re: [docbook] valid XHTML

[oops, forgot to change the address to docbook-apps. Please respond to this 

[moving this over to docbook-apps where such topics are discussed]

You should not be getting duplicate ids in the output, unless there are
duplicate ids in the input.  I'm pretty sure that all instances of id
attributes in the output are produced using the template named "object.id".
That template copies the input id if there is one, or uses the XSLT
generate-id() function if there isn't one, and that function produces
unique ids for each input element.  I'm wondering if some input element is
being processed twice and getting the same id in the output?  Can you post
a short example output with duplicate ids?

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Tomasz Przechlewski" <tomasz@gnu.univ.gda.pl>
To: <docbook@lists.oasis-open.org>
Sent: Saturday, February 17, 2007 5:43 AM
Subject: [docbook] valid XHTML

> Hi,
> Proceeding along recommendations from chapter 24 of DocBook XSL: The
> Complete Guide, I have managed to get `almost' valid XHTML
> using 1.72.0 of the xslstylesheets and xsltproc. The
> most serious problem encountered was that resulting xhtml document
> contains id attributes that are not unique.
> Is this a known bug or I have missed something in my
> customization layer?
> Regards
> --tp
> The customization layer used is included below (relevant part of it)
> <?xml version='1.0' encoding="iso-8859-2" ?>
> <xsl:stylesheet
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>   xmlns="http://www.w3.org/1999/xhtml";
>   version="1.0" >
> <xsl:import
> href="/usr/local/sgml/stylesheets/xmldocbook/1.72.0/xhtml/docbook.xsl"/>
> <xsl:output method="xml"
>     doctype-public="-//W3C//DTD XHTML 1.1//EN"
>     doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";  />
>  <xsl:param name="css.decoration" select="0"/>
>  <xsl:param name="ulink.target" select="''"/>
>  <xsl:param name="make.graphic.viewport" select="0"/>
>  <xsl:param name='html.longdesc' select='0'/>
>  <xsl:param name="generate.id.attributes" select="1" />
> etc...
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org

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