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

Composing dynamic HREF's on-the-fly

Subject: Composing dynamic HREF's on-the-fly
From: Brian Dale <brian@xxxxxxxxxxxxx>
Date: Thu, 16 Dec 1999 17:43:36 -0500
dynamic href
Hello!  I hope someone on the list can help.  I've only been working with
XSL for about two weeks, so please excuse me if this is a stupid question.
I've looked at several examples & tutorials & tried to comprehend the W3C
spec, but I'm still stumped. 

Here's what I'm looking at...

SOFTWARE: 
----------------------
Using Oracle's XSQLservlet (newest version as of last week from
http://technet.oracle.com) to produce the XML file attached & using same to
transform the XML via XSL to HTML for web presentation.


OBJECTIVE:
----------------------
Trying to dynamically compose an <A> tag in an HTML document on the fly
based on contents of the XML like this HTML fragment:

"<A HREF="/New/viewdoc.xsql?DocumentID=1">Patient, Testing</A>
 <A HREF="/New/viewdoc.xsql?DocumentID=2">Patient, Second</A>
 <A HREF="/New/viewdoc.xsql?DocumentID=3">Patient, Testing</A>" 

with the HREF and PATIENT_NAME changing for each ROW in the ROWSET using the
below XML file.


PROBLEM:
----------------------
Unable to get both correct HREF & correct PATIENT_NAME at same time.  Am
able to get one or the other, but not both at the same time in the correct
place.  I've tried various <xsl:apply-template select=""> template variants
without success.  What am I missing???


XML FILE:
---------------------
<?xml version="1.0"?>
<ROWSET>
 <ROW num="1">
  <HREF>/New/viewdoc.xsql?DocumentID=1</HREF>
  <PATIENT_NAME>Patient, Testing</PATIENT_NAME>
  <SERVICE_DATE>12/14/1999 00:29</SERVICE_DATE>
 </ROW>
 <ROW num="2">
  <HREF>/New/viewdoc.xsql?DocumentID=2</HREF>
  <PATIENT_NAME>Patient, Second</PATIENT_NAME>
  <SERVICE_DATE>12/14/1999 00:34</SERVICE_DATE>
 </ROW>
 <ROW num="3">
  <HREF>/New/viewdoc.xsql?DocumentID=3</HREF>
  <PATIENT_NAME>Patient, Testing</PATIENT_NAME>
  <SERVICE_DATE>12/14/1999 17:57</SERVICE_DATE>
 </ROW>
</ROWSET>
-----------------------------

Any ideas?  Any input would be mucho appreciando!  Thanks in advance!



---===o0O] Brian @ HyperSoft.Net [O0o==---


 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.