W3C home > Mailing lists > Public > spec-prod@w3.org > April to June 2006

uniqueness of XSL-FO attribute 'id' not implemented in xmlspec.xsl

From: Klaus Bosse <Klaus.Bosse@web.de>
Date: Tue, 25 Apr 2006 18:34:33 +0200
Message-ID: <000701c66886$25807600$fe78a8c0@adler>
To: <spec-prod@w3.org>

I got some errors, when I tried to transform the file xpath20.xml
into PDF using the xmlspec.xsl-Stylesheet (ver. 1.10). It said
something like: id already exists...
This canceled the XSL-FO to PDF transformation (not the XML to XSL-FO

This is caused by three literal attribute constructions in the
xmlspec.xsl-Stylesheet, e.g.:

line: 919

  <xsl:template match="nt">
    <fo:inline id="{@def}">

This can be changed into

  <xsl:template match="nt">
    <fo:inline id="{concat('@def','_',generate-id())}">

I have done these changes in three places. See file xmlspec_idnew.xsl.

I did not search for any 'side affects' (but I got no more errors),
because I wanted only to see, if the result would be adequate for
my printing ...

Best regards
Klaus Bosse

Received on Tuesday, 25 April 2006 18:57:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:42:17 UTC