RE: Dynamic generation of stylesheets

Subject: RE: Dynamic generation of stylesheets
From: Daniel Rivers-Moore <daniel.rivers-moore@xxxxxxxxxx>
Date: Thu, 16 Mar 2000 10:41:10 -0000
An XSL stylesheet is an XML document. Therefore it can be produced as the
output from an XSLT transformation of some other XML document or documents.

The following XSLT stylesheet

<xsl:stylesheet xmlns:xsl="";>
 <xsl:template match="/">
  <xsl:element name="xsl:stylesheet">
   <xsl:element name="xsl:template">
    <xsl:attribute name="match">//myelemtype[@myatt='myval']</xsl:attribute>
    <xsl:element name="foo">
     <xsl:attribute name="bar">barval</xsl:attribute>

when applied to an arbitrary XML document, will produce this output

<xsl:stylesheet xmlns:xsl="";>
 <xsl:template match="//myelemtype[@myatt='myval']">
  <foo bar="barval"/>

which, in turn, when applied to the following XML document:

<myelemtype myatt="myval"/>

will produce the following result

<foo bar="barval"/>

Hope that helps

Daniel Rivers-Moore
Director of New Technologies
Tel: +44 (0) 1793 792004
Mobile: +44 (0) 7970 893847
Email: daniel.rivers-moore@xxxxxxxxxx

 -----Original Message-----
From: 	Maria Manuel [mailto:Maria.Manuel@xxxxxxxxxxxx] 
Sent:	15 March 2000 09:26
To:	'xsl-list-digest@xxxxxxxxxxxxxxxx'
Subject:	Dynamic generation of stylesheets

Does anyone know how to generate dynamically XSL stylesheets?

Maria Manuel 

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread