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

Re[2]: dynamic name/value pairs on URL using "following::"

Subject: Re[2]: dynamic name/value pairs on URL using "following::"
From: "Brennan OShea" <Brennan.OShea@xxxxxxxxxx>
Date: Fri, 27 Oct 2000 9:12 -0500
xslt url name value pair
     Putting "following::" inside the attribute value template {} works as 
     long as I don't use the (.) operator -- which is what I was doing 
     wrong.
     
     Thanks for the help!!
       
     -Brennan

______________________________ Reply Separator _________________________________
Subject: Re: dynamic name/value pairs on URL using "following::"
Author:  xsl-list@xxxxxxxxxxxxxxxx at INTERNET
Date:    10/26/00 11:00 AM


Brennan,
     
>My problem is with the "following::" syntax using the {} notation to get the 
>value from the XML file for the column on the right side.  I've tried it 
many
>different ways and it does not work.  I still get the value from the left 
> column when I try:
>following::{.XXX/YYY/ZZZ}
     
The {} notation is known as an attribute value template.  The point of it 
is that anything within the {}s will be interpreted as an XPath pointing to 
a node, and its value will be inserted in its place.  So, if the path:
     
  /XXX/YYY/ZZZ
     
points to the ZZZ element whose string value is "foo" then:
     
  href="ui.do?firstVar={/XXX/YYY/ZZZ}"
     
will result in the @href attribute taking the value:
     
  "ui.do?firstVar=foo"
     
It's not exactly clear from your question what your source looks like, and 
what the relevant paths should be.  You do seem to be having problems with 
knowing where the following:: axis should go: it's *part of* the XPath, and
so it needs to go inside the attribute value template as well.  So instead of:
     
  following::{XXX/YYY/ZZZ}
     
you want:
     
  {following::XXX/YYY/ZZZ}
     
I hope that this helps - showing some sample XML and saying what you want 
to get from it is a good next step if it doesn't.
     
Cheers,
     
Jeni
     
Jeni Tennison
http://www.jenitennison.com/
     
     
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.