On 01/27/2012 05:39 PM, Gary Lam wrote: > > I've changed to the absolute url as suggested instead of the relative > but im still getting an error. > > <xsl:attribute-set name="document-title" > use-attribute-sets="title-page-block-style"> > <xsl:attribute name="text-indent">25px</xsl:attribute> > <xsl:attribute name="padding-top">13em</xsl:attribute> > <xsl:attribute name="font-family">sans-serif</xsl:attribute> > <xsl:attribute name="font-weight">normal</xsl:attribute> > <xsl:attribute name="font-size">33px</xsl:attribute> > <xsl:attribute name="color">white</xsl:attribute> > <xsl:attribute name="background-color">#1f95d3</xsl:attribute> > <xsl:attribute name="background-repeat">no-repeat</xsl:attribute> > <xsl:attribute > name="background-image">url(file:/C:/Users/gary.lam/Desktop/MyImages/CoverImage.jpg)</xsl:attribute> > </xsl:attribute-set> > > With this error > > ditac: ERROR: fatal error reported by the XSLT engine: Error reported by > XML parser; SystemID: file:/C:/ditac/ditac-2_0_4/xsl/fo/pagination.xsl; > Line#: 66; Column#: 1 > ditac: ERROR: fatal error reported by the XSLT engine: No attribute-set > exists named link-style; SystemID: > file:/C:/ditac/ditac-2_0_4/xsl/fo/foUtil.xsl; Line#: 145; Column#: 60 > ditac: ERROR: cannot transform "C:\Users\gary.lam\Desktop\FromSiwen\DITA > For check in\finance_doc\meta\ditabookmaps\out\contact9.ditac" to > "C:\Users\gary.lam\Desktop\FromSiwen\DITA For check > in\finance_doc\meta\ditabookmaps\out\contact9.fo <http://contact9.fo>" > using > file:/C:/Users/gary.lam/Desktop/FromSiwen/Scripts/Transforms/customPDF1.xsl: > > Failed to compile stylesheet. 1 error detected. >
--> I cannot believe it worked with: <xsl:attribute name="background-image">CoverImage.jpg</xsl:attribute> and that it stopped working after you have specified: <xsl:attribute name="background-image">url(file:/C:/Users/gary.lam/Desktop/MyImages/CoverImage.jpg)</xsl:attribute> --> I cannot reproduce this error. For example, this custom XSLT stylesheet works fine for me: --- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0"> <xsl:import href="ditac-xsl:fo/fo.xsl"/> <xsl:attribute-set name="document-title" use-attribute-sets="title-page-block-style"> <xsl:attribute name="text-indent">25px</xsl:attribute> <xsl:attribute name="padding-top">13em</xsl:attribute> <xsl:attribute name="font-family">sans-serif</xsl:attribute> <xsl:attribute name="font-weight">normal</xsl:attribute> <xsl:attribute name="font-size">33px</xsl:attribute> <xsl:attribute name="color">white</xsl:attribute> <xsl:attribute name="background-color">#1f95d3</xsl:attribute> <xsl:attribute name="background-repeat">no-repeat</xsl:attribute> <xsl:attribute name="background-image">url(file:/home/hussein/icons/photos/pixware.team.JPG)</xsl:attribute> </xsl:attribute-set> </xsl:stylesheet> --- Reference: http://www.xmlmind.com/ditac/_distrib/doc/manual/manual-6.html#customAttributeSet I suppose that you have made a mistake in your custom XSLT stylesheet. Also please understand that, in principle, we do not provide any support for helping a user customize the output of ditac. See http://www.xmlmind.com/ditac/support.html#ditac_support_policy -- XMLmind DITA Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/ditac-support

