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

Re: xsl to xsl (xsl creating xsl ouput)

Subject: Re: xsl to xsl (xsl creating xsl ouput)
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Sep 2000 19:15:11 +0200 (MET DST)
create xsl from xsl
> <?xml version='1.0' encoding="UTF-8"?>
> <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"/>
> 
> <!-- everything between the x:template tags 
>      is outputted to the new stylesheet 
>   -->
>   
>    <x:template match="/">
>       <xsl:stylesheet version="1.0">
>       <xsl:template match="/">
>          <xsl:value-of select="foobar"/>
>       </xsl:template>
> 
>       <!-- Create the include lines??? -->
>       <x:for-each select="//INCLUDE">
>          <xsl:include>

>             <xsl:attribute name="href">
>                <x:value-of select="."/>
>             </xsl:attribute> 
                ^^^
This should be <x:attribute>

>          </xsl:include>
>       </x:for-each>
> 
>       </xsl:stylesheet>
>    </x:template>
> </x:stylesheet>

After applying the "patch" Saxon outputs

<?xml version="1.0" encoding="utf-8"?>
<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform" version="1.0">
   <x:template match="/">
      <x:value-of select="foobar"/>
   </x:template>
   <x:include href="include1.xsl"/>
   <x:include href="include2.xsl"/>
</x:stylesheet>

Is this the output you expected?

Cheers,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 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.