[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: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 25 Oct 2002 14:12:20 +0100
document variables rtf

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

I'm not sure what your problem is with the syntax: it is a completely
standard Xpath expression, just using the stylesheet as source document.

If you are OK with
/aaaaa/bbbbb[@zzz='ffff']
then you should be OK with
/xsl:stylesheet/xsl:variable[@name='Test']


> It is not a (direct) child of xsl:stylesheet -
If it is some fixed piece of data then you may as wel make it at the top
level, and simplify things.

  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']"/>

neither of those.

document('')/xsl:template/

would find xsl:templates thatare children of the root node of teh
current document, but the only child element of teh root node is
xsl:stylesheet.

document('')/xsl:stylesheet/*/xsl:template/

would find xsl:templates that are children of some child (*) of
xsl:stylesheet but there are none of those, all xsl:template elements
are children of xsl:stylesheet, so

document('')/xsl:stylesheet/xsl:template/

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 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.