This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Outfoxing fo-patch-for-fop.xsl
- From: Norman Walsh <ndw at nwalsh dot com>
- To: Matthew Braun <mbraun at urbana dot css dot mot dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 09 Jan 2002 20:15:57 -0500
- Subject: DOCBOOK-APPS: Re: Outfoxing fo-patch-for-fop.xsl
- References: <200201092221.QAA15100@chestburster.urbana.css.mot.com>
/ Matthew Braun <mbraun@urbana.css.mot.com> was heard to say:
| To work around this, I added the "Fop extensions" namespace to the top of
| fo-patch-for-fop.xsl like so:
|
| <?xml version="1.0"?>
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
| xmlns:fo="http://www.w3.org/1999/XSL/Format"
| xmlns:fox="http://xml.apache.org/fop/extensions"
| version="1.0">
|
| I'm not sure if it's the right thing to do (fop produced the same output
| either way, since my article's not actually producing any thumbnails).
| However, if it should be fixed in some other fashion, I'll take
| suggestions. :-)
Yes, I think that's the right thing to do. The problem arises because
the patch matches on '*' and then uses the name() function (which
returns fox:localName). So the fox prefix has to be bound.
I should probably experiment with
<xsl:element name="{local-name(.)}" namespace="{namespace-uri(.)}">
...
instead of name="{name(.)}".
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | There is nothing which human
http://www.oasis-open.org/docbook/ | courage will not undertake, and
Chair, DocBook Technical Committee | little that human patience will
| not endure.--Dr. Johnson