OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   unable to reference a portion of my XMLdoucment using HTML hyperl inks

[ Lists Home | Date Index | Thread Index ]
  • From: "Raheja, Dhruv (TRANS)" <Dhruv.Raheja@Trans.ge.com>
  • To: "'xml-dev@lists.xml.org'" <xml-dev@lists.xml.org>
  • Date: Wed, 02 Aug 2000 17:37:03 -0400

hello everybody,
                        i apologize for posting so many supposed no-brainers
but i'm new to XML and still learning how to use it. this time my problem
has to do with referencing a portion of my XMLdoucment using HTML
hyperlinks. Basically I have a "Table of Contents"  that has hyperlimked
titles which when clicked should allow the user the access the relevant part
of the document. When I view my output, the constituents  of  "Table of
Contents" does appear as hyperlinks but when i click on them, nothing
happens (i dont even get an error message). the relevant part of the code is
as follows:

         XML document

			<topic toc1="#contactor">
			DC CONTACTOR, 41A296327AM
			<topic toc1="#func_desc">
			<topic toc1="#clean">
			 <topic toc1="#lube">
			<topic toc1="#clean">

    In the document, I have also have another attribute (toc2) that is
defined in the location that the hyperlink should point to, i.e. for example
    the text is located in the following element:

                        <activity type="INSPECTION"  toc2="inspect">

   I am using the values of toc1 and toc2 in the stylesheet as follows:

			XSL Document

<xsl:template match="pub/toc">
	<h3><xsl:value-of select="title"/></h3>
			<xsl:for-each select="topic">
<xsl:value-of select="@toc1"/>

also later in the stylesheet, i have the following <a></a> tag:

<xsl:template match="activity">
		<xsl:attribute name="name">
			<xsl:value-of select="@toc2"/>
	<h4><xsl:value-of select="@type"/></h4>

I am unable to find the error. Please help. I would really appreciate it.

Thanks a lot, 

Dhruv Raheja
Summer Intern (Documentation Center)
GE Transportation Systems
2901 East Lake Road
Erie, PA 16531
Ph : (814) 875 - 2529 (O)
       (814) 824 - 2888 (R)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS