Subject: RE: xsl to xsl (xsl creating xsl ouput) From: Kay Michael <Michael.Kay@xxxxxxx> Date: Tue, 5 Sep 2000 17:57:27 +0100 |
> > 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"/> Your stylesheet is correct except that <xsl:attribute> should be <x:attribute>. With this change, 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> Mike Kay > 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="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> > </xsl:include> > </x:for-each> > > </xsl:stylesheet> > </x:template> > </x:stylesheet> > > > TIA, > > ---------------------------------- > Thor Carlson > Dun & Bradstreet > carlsont@xxxxxxx > 973.605.6095 voice > 973.605.6957 fax > > > 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: xsl to xsl (xsl creating xsl ou, Evan Lenz | Thread | Re: xsl to xsl (xsl creating xsl ou, Oliver Becker |
xsl-fo: Setting Content of First Pa, Christopher A. Brook | Date | Re: xsl to xsl (xsl creating xsl ou, Oliver Becker |
Month |