Subject: Re: [xsl] Applying a transform to a tranform From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 09 Sep 2003 18:58:26 -0400 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exslt="http://exslt.org/common" extension-element-prefixes="exslt">
<xsl:variable name="first-process-results"> <!-- you'll want either an explicit path here, or better, a mode, to avoid infinite recursion --> <xsl:apply-templates select="/rowset" mode="first"/> </xsl:variable>
<xsl:template match="/"> <xsl:apply-templates select="exslt:node-set($first-process-results)" mode="second"/> </xsl:template>
I thought the following logic would work but it doesn't
<xsl:apply-templates select="rowset"/> -- to transform into tree like xml <xsl:apply-templates select="tree"/> -- to transform into html tree control
It appears as though this is transforming the original doc in both instances (i.e. the rowset template select doesn't "pass" the results of its transform forward).
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Applying a transform to a, Michael Kay | Thread | [xsl] Using an xsl:variable within , Timothy M. Lebo |
RE: [xsl] xhtml and ie6, Americo Albuquerque | Date | [xsl] Using an xsl:variable within , Timothy M. Lebo |
Month |