Subject: [newbie] Simple linking From: Jani.Halmetoja@xxxxxxxxxxxxxxxxxxx Date: Mon, 24 Jul 2000 16:16:56 +0300 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: namespaces and extensions and m, Steven Livingstone | Thread | Merging two XML Documents, Oliver Becker |
[Announce] XSLTC 0.3 (C++ styleshee, ogerardin . cs | Date | Intersection Problem, Carlos Sanchez |
Month |