[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Building RTF variable

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


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


It looks that way, which means that the Xpath

/xsl:stylesheet/xsl:variable[@name='Test']

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']"/>
and
<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="http://www.w3.org/1999/XSL/Transform" version='1.0'>
..
<xsl:template match="/">
..
<xsl:apply-templates select="Temp1"/>
</xsl:template>


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

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

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

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

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. http://resourcecenter.msn.com/access/plans/2monthsfree.asp



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.