This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [docbook-apps] Customising header.content template for XSL/FO


The fo: prefix has to be declared in each individual stylesheet using it.
Chances are good that none of the rest of your customizations use the fo:
prefix (many types of customizations, such as parameters and attribute-sets
never use the namespace prefix).  You will need to declare the fo namespace
with the following declaration within the start tag of your xsl:stylesheet
element:

 xmlns:fo="http://www.w3.org/1999/XSL/Format";

Jeff Beal

> -----Original Message-----
> From: Nick Hunt [mailto:nick@magmouse.demon.co.uk]
> Sent: Friday, July 11, 2003 2:21 PM
> To: docbook-apps@lists.oasis-open.org
> Subject: [docbook-apps] Customising header.content template for XSL/FO
> 
> 
> Hi All,
> 
> I am trying to customise headers in my PDF output (xsltproc/FOP 
> toolchain) by overriding the header.content template
> in my driver file. Whatever I do, even if I simply copy the original 
> template across, I get errors of the form:
> 
> XML/config-fo.xsl:37: warning: Namespace prefix fo is not defined
>    <fo:block>
>             ^
> XML/config-fo.xsl:48: warning: Namespace prefix fo is not defined
>          <fo:page-number/>
>                         ^
> 
> Without the copy of the header.content template in the driver 
> file, all 
> is well. I have seen this customisation discussed on the list, so it 
> must work for others. Any ideas?
> 
> Thanks,
> 
> Nick.
> 
> 
> System: xsltproc and FOP on Mac OS X, all latest versions. Release 
> 1.63.1 of the XSL style sheets.
> ----------------------------------------
> Nick Hunt
> nick@magmouse.demon.co.uk
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: 
> docbook-apps-help@lists.oasis-open.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]