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

Re: <xsl:choose> <xsl:when> and graphics salad!

Subject: Re: <xsl:choose> <xsl:when> and graphics salad!
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 5 Apr 2000 16:19:46 +0100 (BST)
etc graphics carlisle
> It looks like:

haha at last some information:-)

> <document>

so your root element is called document.
so the xpath expression /text/@text.role will always return an empty
node set, which counts as false to xsl:if.

> Should I just do <xsl:template match="packet">
>					<xsl:value-of select="text"/>

well that is always empty, judging by your example, packet
only has para and illust children, no text children.

Of course I don't have any idea what the desired output should be but
I'd guess you want to have 
<xsl:template match=packet">
....
  and then have queries like select="para" select="illust/image" etc.
you need to use relative queries from the current node, not absolute
paths starting with / if yoxrmu intend to get different values for
different instances of the template. The current node will be whichever
node you specify in the match attribute to xsl:template.


David


 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.