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

RE: XML-Linking(A small problem)


car insurance template
hi puja.
When i saw the code of the xsl file, i noticed this:
 
<p align="left"><a name="Sorted by Disciplines"><big>Sorted by Disciplines</big></a></font> </p>
<p align="left"><font face="Times New Roman"><a href="#Air Tickets"><big>Air Tickets</big></a><br/>
<a href="Auto Insurance"><big>Auto Insurance</big></a><br/>
<a href="BS - Bachelor Of Science"><big>BS - Bachelor Of Science </big></a><br/>
<a href="PH - Pretty &amp; Humble"><big>PH - Pretty &amp; Humble</big></a><br/>
</font> </p>
In this label <a href="#Air Tickets"> you have used '#' but you didn'n in the rest.
(I suggest you to build this index from the different grants of the documents)
 
At last,¿ where is the <a name=""> of every Cathegory-and-Discipline?
 you must include this.
 
<xsl:template match="Category_and_Discipline">
 
  <P>
   <B><center><strong><font color="#000080"><big><big>
   <a>
    <xsl:attribute name="name">
    <xsl:text>#</xsl:text>
    <xsl:value-of select="text()"/>
    </xsl:attribute>
    <xsl:value-of select="."/>
   </a>
  </big></big></font></strong></center></B></P>
</xsl:template>
It´ll work
 
<------------------------------------------------------------------------------------------------->
XSL is
 
<?xml version='1.0' encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/TR/REC-html40">
<xsl:output method ="html"/>
<xsl:template match="Grants">
 <HTML>
    <HEAD>
       <TITLE>Grant</TITLE>
    </HEAD>
    <BODY>
<A NAME="TOP"/> 
<h2 align="center"><font color="#800000">MSN<BR/>MSN HOME</font></h2><BR/>
<p align="left"><font color="#004080" face="Times New Roman"><a name="Sorted by Disciplines"><big>Sorted by Disciplines</big></a></font> </p>
<p align="left"><font face="Times New Roman"><a href="#Air Tickets"><big>Air Tickets</big></a><br/>
<a href="Auto Insurance"><big>Auto Insurance</big></a><br/>
<a href="BS - Bachelor Of Science"><big>BS - Bachelor Of Science </big></a><br/>
<a href="PH - Pretty &amp; Humble"><big>PH - Pretty &amp; Humble</big></a><br/>
</font> </p>
<xsl:apply-templates/> 
 
</BODY>
  </HTML>   
</xsl:template>

<xsl:template match="Category_and_Discipline">
 
  <P><B><center><strong><font color="#000080"><big><big><xsl:value-of select="."/></big></big></font></strong></center></B></P>
</xsl:template>
<br/>
<xsl:template match="Grant/Category">
<B><xsl:value-of select="."/></B>
</xsl:template>
<xsl:template match="Grant/Handout_Number">
<B><xsl:value-of select="."/></B><br/>
</xsl:template>
<xsl:template match="Grant/Sponsor">
  <font color="#0000FF"><xsl:value-of select="."/></font><br/>
</xsl:template>
<xsl:template match="Grant/Program">
  <B><U><xsl:value-of select="."/></U></B><br/><br/>
</xsl:template>
<xsl:template match="Grant/Description">
     <xsl:value-of select="."/><br/>
</xsl:template>
<xsl:template match="Grant/url">
  <I><font color="#0000FF">
 <A TARGET="_blank">
 <xsl:attribute name ="HREF">
 <xsl:apply-templates/>
 </xsl:attribute> 
 <xsl:apply-templates/>
 </A> 
        </font>
  </I><br/>
</xsl:template>

<xsl:template match="Grant/Deadline_Dates">
  <B>
     <xsl:value-of select="."/>
  </B><br/><br/><hr/><p><center>[<a href="#TOP">TOP</a>]</center></p><hr/>
   </xsl:template>
 
</xsl:stylesheet>
 
 
When I try to view it in HTML page in IE,it shows fine.But when I click on the BS - -Bachelor Of science,it doesn't take me to that link down.How should I set the link?
 
My URL links are working fine.
 
Please help me.Thanks a bunch.
Regards,
Puja.


Do you Yahoo!?
http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com - Free, easy-to-use web site design software

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.