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

Re: XSL to XSL?

Subject: Re: XSL to XSL?
From: "Michael J. Hudson" <mhudson@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 05 Apr 2000 17:39:37 -0400
evangelist richard bell
Thanks alot Steve!! AWESOME, in fact.
Yeah, I'm currently using an old version of the Lotus XSL processor
and all my reference books and websites are pretty old as well.
And being not the kind of person, who likes reading the official
standards documentation... I was totally unaware of that command.
Well, here's to upgrading to new processors and trying to find
some more up to date books! :)  Thanks again!


> 
> Date: Wed, 5 Apr 2000 13:11:15 -0700
> From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
> Subject: Re: XSL to XSL?
> 
> Yes.
> 
> You can take advantage of the built-in XSLT 1.0
> feature called <xsl:namespace-alias> to do the
> following:
> 
> <x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform"
>               xmlns:xsl="anything" version="1.0">
> <x:output method="xml" indent="yes"/>
> <x:namespace-alias stylesheet-prefix="xsl" result-prefix="x"/>
> <x:template match="/">
>   <xsl:stylesheet version="1.0">
>     <xsl:template match="/">
>       <xsl:value-of select="foo"/>
>     </xsl:template>
>    </xsl:stylesheet>
> </x:template>
> </x:stylesheet>
> 
> This outputs the valid XSLT stylesheet:
> 
> <?xml version = '1.0' encoding = 'UTF-8'?>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>    <xsl:template match="/">
>       <xsl:value-of select="foo"/>
>    </xsl:template>
> </xsl:stylesheet>
> 
> I tried this with the Oracle XSLT Processor release 2.0.2.7,
> but any XSLT-REC-compliant processor should behave
> similarly. I just also tried Saxon 5.2, XT which work as well.
> 
> ______________________________________________________________
> Steve Muench, Lead XML Evangelist & Consulting Product Manager
> Business Components for Java Dev't Team, Oracle Corporation
> 

-------------------------------------
Michael J. Hudson
Software/Framework Engineer
mhudson@xxxxxxxxxxxxxxxxx

cell-phone: 703.932.6412
voice-mail: 703.827.0638 ext. 4786
fax: 703.734.0987

Blueprint Technologies
"The E-Solution Architect" 
http://www.blueprinttech.com


 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.