[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
chris hadar
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.