Subject: [xsl] hyperlink From: Paul_B_Grimes@xxxxxxxxxx Date: Mon, 16 Jul 2001 14:32:37 -0700 |
I have an xml file linked to an xsl sheet and a schema. I'm having trouble linking a column of table data. The column contains project titles which, I would like to link to their respective descriptions. The table has multiple headers which, when clicked, sort the corresponding column of data. I can't figure out how to make a different link for each piece of data in the "project title" column. I'm hoping I don't have to use xlink, as I am barely figuring out xsl hehe. The following is the section of the xsl sheet I am referring to, then the xml file. Thank you for any help. Paul Grimes . . . <table style="background-color:whitesmoke" border="1" rules="rows" frame="below" bordercolor="steelblue" cellpadding="2" id="data"> <thead> <td><div class="header" onClick="sort('project_title', 'text')">Project <br/>Title<br/></div></td> <td><div class="header" onClick="sort('project_number', 'number')">Project Number</div></td> <td><div class="header" onClick="sort('start_convert', 'number')">Start Date</div></td> <td><div class="header" onClick="sort('completion_convert', 'number')">Completion Date</div> </td> <td><div class="header" onClick="sort('cost', 'number')">Project Cost</div></td> <td><div class="header" onClick="sort('contact_name', 'text')">Contact Name</div></td> <td><div class="header" onClick="sort('contact_number', 'number')">Contact Number</div></td> <td><div class="header" onClick="sort('branch', 'text')">Branch<br /><br /></div></td> </thead> <xsl:for-each select="p:project"> <xsl:sort select="p:project_title" data-type="text"/> <tr> <td><div class="row"><xsl:value-of select ="p:project_title"/></div></td> <td><div class="row" style ="text-align:right"><xsl:apply-templates select ="p:project_number"/></div></td> <td><div class="row" style ="text-align:right"><xsl:apply-templates select="p:start_date"/></div></td> <td><div class="row" style ="text-align:right"><xsl:apply-templates select ="p:completion_date"/></div></td> <td><div class="row" style="text-align:right"> $<xsl:apply-templates select="p:cost"/></div></td> <td><div class="row"><xsl:value-of select ="p:contact_name"/></div></td> <td><div class="row" style ="text-align:right"><xsl:apply-templates select ="p:contact_number"/></div></td> <td><div class="row"><xsl:value-of select ="p:branch"/></div></td> </tr> . . . <?xml:stylesheet type="text/xsl" href="sortProjects.xsl"?> <current_projects xmlns="x-schema:sortProjects-schema.xml"> <contents>Project Listing</contents> <date_span dt="dateTime">2000 - 2001</date_span> <project> <project_title>PenMap Demonstration</project_title> <project_number dt="fixed.14.4">6</project_number> <description>This technology transfer project will expose the latest field data collection technologies to geotechnical staff at Caltrans through the implementation of two PenMap field mapping units as developed by Condor Earth Technologies, Inc. The equipment will be made available for use by staff to assist in the rapid development of topographic maps, cross-sections, and descriptions of landslides for engineering analyses and reports. Various types of positioning instrumentation will be incorporated into the PenMap units to evaluate field performance and accuracies, debug the system, and develop customized packages for specialized applications for Caltrans end-users. </description> <start_date dt="fixed.14.4">7-23-01</start_date> <start_convert dt="fixed.14.4">20010723</start_convert> <completion_date dt="fixed.14.4">8-19-01</completion_date> <completion_convert dt ="fixed.14.4">20010819</completion_convert> <cost dt="fixed.14.4">8000</cost> <contact_name>Loren Turner</contact_name> <contact_number dt="fixed.14.4">(916) 227-7174</contact_number> <branch>Geotechnology Implemtation Program</branch> </project> <project> <project_title>Continuous GPS: Pilot Applications - Phase I</project_title> <project_number dt="fixed.14.4">2</project_number> <description>This project will focus on the design, and development of high-precision autonomous GPS networks for deformation monitoring for landslide and structure monitoring. This phase of the research will work on identifying and configuring appropriate GPS hardware and communications systems. Accurate monitoring of structural displacements using new GPS technologies offer significant potential for improved understanding of bridge performance under daily, seasonal, and extreme loads. New GPS technologies may provide excellent new capabilities for continuous monitoring of active or potentially active landslides and enable rapid response to new movements. The experience gained through these test deployments would serve to guide future installations. </description> <start_date dt="fixed.14.4">4-12-01</start_date> <start_convert dt="fixed.14.4">20010412</start_convert> <completion_date dt="fixed.14.4">9-20-01</completion_date> <completion_convert dt ="fixed.14.4">20010920</completion_convert> <cost dt="fixed.14.4">110000</cost> <contact_name>Loren Turner</contact_name> <contact_number dt="fixed.14.4">(916) 227-7174</contact_number> <branch>Geotechnology Implementation Program</branch> </project> <project> <project_title>Continuous GPS: Pilot Applications - Phase II</project_title> <project_number dt="fixed.14.4">3</project_number> <description>This project will develop, and test deploy high-precision autonomous GPS networks for deformation monitoring of at least two major structures and two important landslides. The research will focus on systems integration, developing user-friendly software analysis tools, coordinating data interfaces with end users, and evaluating system performance under long-term field conditions. The experience gained through these test deployments will serve to guide future installations. Accurate monitoring of structural displacements using new GPS technologies offer significant potential for improved understanding of bridge performance under daily, seasonal, and extreme loads. New GPS technologies may provide excellent new capabilities for continuous monitoring of active or potentially active landslides and enable rapid response to new movements. The experience gained through these test deployments would serve to guide future installations.</description> <start_date dt="fixed.14.4">2-17-01</start_date> <start_convert dt="fixed.14.4">20010217</start_convert> <completion_date dt="fixed.14.4">9-22-01</completion_date> <completion_convert dt ="fixed.14.4">20010922</completion_convert> <cost dt="fixed.14.4">85000</cost> <contact_name>Loren Turner</contact_name> <contact_number dt="fixed.14.4">(916) 227-7174</contact_number> <branch>Geotechnology Implentation Progam</branch> </project> . . . XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Background color problem , richard . whitley | Thread | Re: [xsl] hyperlink, Jeni Tennison |
RE: [xsl] Background color problem , richard . whitley | Date | RE: [xsl] Background color problem , Kevin Nardi |
Month |