This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl to xsl
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] xsl to xsl
- From: "Darrin Bishop" <dbishop at legis dot state dot il dot us>
- Date: Tue, 3 Apr 2001 15:35:20 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
I believe you can do this by using the <xsl:namespace-alias> element.
<xsl:namespace alias stylesheet-prefix = "someAlias" result-prefix="xsl">
where "someAlias" is used as the prefix for the xslt elements that you want
to be put into the result tree and where xsl is the prefix that that is
linked ot "http://www.w3c.org/1999/XSL/Transform"
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Simon Wickes
Sent: Tuesday, April 03, 2001 3:21 PM
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] xsl to xsl
At 03:57 PM 4/3/01 -0400, you wrote:
>Hello,
>I'm trying to output an xsl using xsl and am having a hard time
>distinguishing which parts i want the processor to actually process and
>which parts are meant to be straight output. <xsl:text> doesn't seem to be
>any help and <![CDATA escapes all the brackets making the output useless.
>Any suggestions?
>Thanks,
>Alex
>
I believe that you can redefine the namespace for the XSL program itself
and use the xsl: namespace for your output. You have to ensure that the new
namespace uses the URI of the XSLT namespace.
for example,
<simon:stylesheet xmlns:simon="http://www.w3.org/1999/XSL/Transform">
<simon:template match="/">
<xsl:template match="whatever">...
etc.
Simon
xmlgeek@email.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list