Re: [xsl] Building RTF variable

Subject: Re: [xsl] Building RTF variable
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Fri, 25 Oct 2002 12:40:33 +0000
Hi again David (and others, of course)

> - It seems to me, that test2 is empty :-(

It looks that way, which means that the Xpath


didn't find your first variable. Was it a child of xsl:stylesheet rather
than (say) xsl:transform or xsl:template?????

It is not a (direct) child of xsl:stylesheet - I but dimly begin to percieve how the syntax (might) work.

Given the syntax below, what would I write for it to work?
I tried
<xsl:variable name="test2" select="document('')/xsl:template/xsl:variable[@name='Test']"/>
<xsl:variable name="test2" select="document('')/xsl:stylesheet/*/xsl:template/xsl:variable[@name='Test']"/>

but alas both with the same no-result.

<!-- This stylesheets complexity aproximately matches the one I use -->
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl=""; version='1.0'>
<xsl:template match="/">
<xsl:apply-templates select="Temp1"/>

<xsl:template match="Temp1">
 <xsl:apply-templates select="Temp2"/>

<xsl:template match="Temp2[Temp2]">
 <xsl:apply-templates select="Temp2[not(Temp2)]"/>

<xsl:template match="Temp2[not(Temp2)]">
 <xsl:call-template name="CallTemp"/>

<xsl:template name="CallTemp">
 <!-- All the variable stuff in here -->

For the solution to work, and even having learned something in the process, would be great!

Ragulf Pickaxe :-)

Unlimited Internet access -- and 2 months free!  Try MSN.

XSL-List info and archive:

Current Thread