Re: transforming elements with namespaces

Subject: Re: transforming elements with namespaces
From: Chris Holmes <cholmes@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 04 Oct 1999 08:37:00 -0400
I'll tell you what I did, which isn't pretty but it works.  I created a new
namespace, for instance tmp:, and used it.  When the transformation was done, I
did a textual replace on the file with the namespace you want (fo:).  It works
great for the processor, but it's ugly and you need to do some extra work
outside the Lotus processor.

- Chris

"Hadar, Oren" wrote:

> Hi XSL-List'ers,
>
> I am writing an XSL stylesheet that will be used to transform XSL
> stylesheets. The stylesheets being transformed have fo: elements in them. In
> the stylesheet I am writing, I want to be able to match those fo: elements
> like this:
>
> <xsl:template match="fo:block">
>
> The problem is that if I don't have an xmlns:fo declaration in my stylesheet
> (the one I am writing, not the one being transformed), the XSL processor
> (LotusXSL 0.18.2) crashes on an Java error, saying it couldn't resolve the
> fo namespace. If I *do* put in the namespace declaration, the fo:block gets
> interpreted as an instruction, not a literal result template.
>
> What can I do?
>
> Thanks in advance,
>
> Oren Hadar
> Application Designer
> Interleaf, Inc.
> ohadar@xxxxxxxxxxxxx
> (781) 768-1082 <!-- used to hide NNTP attachment from web user -->
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread