RE: xsl to xsl (xsl creating xsl ouput)

Subject: RE: xsl to xsl (xsl creating xsl ouput)
From: "Evan Lenz" <elenz@xxxxxxxxxxx>
Date: Tue, 5 Sep 2000 10:29:20 -0700
You need to change the <xsl:attribute> to <x:attribute> so that the
processor recognizes it as an instruction rather than as a literal result

Evan Lenz
XYZFind Corp. "Building Better Search"

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Carlson, Thor
Sent: Tuesday, September 05, 2000 8:58 AM
To: 'xsl-list@xxxxxxxxxxxxxxxx'
Subject: xsl to xsl (xsl creating xsl ouput)

Using the examples in Mike Kay's book and the XSL-List archive, I used one
XSL stylesheet to create a second stylesheet via the <xsl:namespace-alias>
feature.  I also need to augment the new stylesheet based on an XML source
file (XML + XSL = newXSL).

Given the following XML file:


I want my output stylesheet to include the following in addition to the
hardcoded output:

<xsl:include href="include1.xsl"/>
<xsl:include href="include2.xsl"/>

The following stylesheet outputs XSL except I can't figure out how to
process the input XML file as well (the for-each doesn't run, it is merely
output as more XSL).

<?xml version='1.0' encoding="UTF-8"?>
<x:stylesheet xmlns:x="";
              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"/>

      <!-- Create the include lines??? -->
      <x:for-each select="//INCLUDE">
            <xsl:attribute name="href">
               <x:value-of select="."/>



Thor Carlson
Dun & Bradstreet
973.605.6095 voice
973.605.6957 fax

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread