[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: DOCBOOK: No attribute value 'PDF' in imagedata
On Thu, Mar 06, 2003 at 10:39:18AM -0500, Stefan Seefeld wrote: > > Joachim Ziegler wrote: > > Hello, > > > > I've just tried the following from Bob Staytons 2using the XSLT > > Stylesheets": > > > > Example 16.1. Multiple graphics in a mediaobject > > > > <mediaobject id="MousePicture"> > > <imageobject role="html"> > > <imagedata format="PNG" fileref="mouse.png"/> > > </imageobject> > > <imageobject role="fo"> > > <imagedata format="PDF" fileref="mouse.pdf"/> > > </imageobject> > > </mediaobject> > > > > > > > > But xmllint says: > > > > validity error: Value "PDF" for attribute format of imagedata is not > > among the enumerated set > > > hmm, the xsl package seems to allow/expect PDF images (with suitable > extensions enabled), so I don't understand why 'PDF' isn't a valid > format attribute. > > For example, fo/graphics.xsl contains this: > > > <xsl:param name="graphic.notations"> > <!-- n.b. exactly one leading space, one trailing space, and one > inter-word space --> > <xsl:choose> > <xsl:when test="$passivetex.extensions != 0"> > <xsl:text> PNG PDF JPG JPEG linespecific </xsl:text> > </xsl:when> > <xsl:when test="$fop.extensions != 0"> > <xsl:text> SVG PNG PDF JPG JPEG linespecific </xsl:text> > </xsl:when> > <xsl:when test="$arbortext.extensions != 0"> > <xsl:text> PNG PDF JPG JPEG linespecific GIF GIF87a GIF89a TIFF > BMP </xsl:text> > </xsl:when> > <xsl:when test="$xep.extensions != 0"> > <xsl:text> SVG PNG PDF JPG JPEG linespecific GIF GIF87a GIF89a > TIFF BMP </xsl:text> > </xsl:when> > <xsl:otherwise> > <xsl:text> PNG PDF JPG JPEG linespecific GIF GIF87a GIF89a TIFF > BMP </xsl:text> > </xsl:otherwise> > </xsl:choose> > </xsl:param> > > which seems to imply that all the above extensions support pdf > inclusions. This looks like a case of the stylesheets being ahead of the DTD. PDF should be added to the %notation.class; parameter entity in the DTD, so I'll submit an RFE for that. In the meanwhile, you can extend the list in notation.class using local.notation.class to allow PDF by adding this to your DOCTYPE in each file: <!DOCTYPE book PUBLIC "..." "..." [ <!ENTITY % local.notation.class "| PDF"> ]> That should enable validation. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]