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

[newbie] Simple linking

Subject: [newbie] Simple linking
From: Jani.Halmetoja@xxxxxxxxxxxxxxxxxxx
Date: Mon, 24 Jul 2000 16:16:56 +0300
jani halmetoja

Hi!

I have a simple guestion:

How to make links between elements (using IE5)?
I have made a table using <xsl:for-each select>-method.
In my xml-file there can be identical content in elements and I want to produce
a link between them (for example ROOT/EXS/EX/PORT -> ROOT/BASIC/ID).


The XML-file and the XSL-file looks like this:

--xmlfile----------------

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml:stylesheet type="text/xsl" href="xslfile.xsl"?>
<xml xmlns="x-schema:schema.xml">
<ROOT>
     <BASIC>
          <ID>pr:00valve0.F</ID>
          <NAME>Valve 1</NAME>
     </BASIC>
     <EXS>
          <EX>
               <TARGET>pr:00valve1:a</TARGET>
               <PORT>pr:00valve1.F</PORT>
          </EX>
          <EX>
               <TARGET>pr:00valve2:a</TARGET>
               <PORT>pr:00valve2.F</PORT>
          </EX>
     </EXS>
</ROOT>
<ROOT>...</ROOT>
<ROOT>...</ROOT>
</xml>
-------------------------

--xslfile----------------

<xsl:template match="xml">
     <TABLE border="1">
          <THEAD align="center">
               <TD width="100"><DIV class="header">ID</DIV></TD>
               <TD width="100"><DIV class="header">EX</DIV></TD>
               <TD width="100"><DIV class="header">EX</DIV></TD>
          </THEAD>

     <xsl:for-each select="ROOT">
          <TR>
               <TD width="100"><a class="row"><xsl:value-of
select="BASIC/ID[0]"/></a></TD>
               <TD width="100"><a class="row"><xsl:value-of
select="EXS/EX[0]"/></a></TD>
               <TD width="100"><a class="row"><xsl:value-of
select="EXS/EX[1]"/></a></TD>
          </TR>
     </xsl:for-each>
     </TABLE>
</xsl:template>
-------------------------

Thanks in advance.

Jani



 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.