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

Re:

Subject: Re:
From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
Date: Thu, 16 Dec 1999 17:10:14 -0800
Re:
Let's say you have a "dept.xsql" page like:

 <?xml version="1.0"?>
 <?xml-stylesheet type="text/xsl" href="dept.xsl"?>
 <query>
   select deptno, dname from dept
 </query>

and an "emp.xsql" page like:

 <?xml version="1.0"?>
 <?xml-stylesheet type="text/xsl" href="e,dept.xsl"?>
 <query>
   select empno, ename, sal from emp
   where deptno = {@d}
 </query>

Then in your dept.xsl stylesheet, to create
a HREF what links to the emp.xsql page to
show the employees in that department you'd
put:

    <xsl:for-each select="ROWSET/ROW">
      <a href="emp.xsql?d={DEPTNO}">
        <xsl:value-of select="DEPTNO"/>
      </a>
    </xsl:for-each>

This will generate hyperlinks whose
text is the department number and
whose (relative URL) HREF will look
like (e.g. for department 10)...

  emp.xsql?d=10

clicking on that link will show the
XSLT formatted results for the employees
in department 10.

In the future, you might send XSQL-specific
questions to the Oracle XML Discussion Forum
on Oracle Technet (http://technet.oracle.com)

Thanks.

_________________________________________________________
Steve Muench, Consulting Product Manager & XML Evangelist
Business Components for Java Development Team
http://technet.oracle.com/tech/java
http://technet.oracle.com/tech/xml
----- Original Message -----
From: "Shanthi Rajaram" <shanthi@xxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Thursday, December 16, 1999 4:25 PM


Hi,

I am a newbie wrt both XML and XSL + XSQL.

Now I have some simple problems, I will be very thankful if you can help me
out.

1) I have some fields which are there for select, based on only those fields
which are filled out, I want to form the select statement in the XSQL what
to do for the same

2) I have a list of records that are returned, I would like to href the
first field on the column so that on the click of that field I can go to a
detailed screen for that particular record.

If any body needs the code that I am using I can send it across, but I will
be happy if I can be helped at the earliest.

Thanking you,
Shanthi



 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.