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

call-template from href NO SERVER INVOLVED ???

Subject: call-template from href NO SERVER INVOLVED ???
From: Patricia LaRue <pdlarue@xxxxxxxxx>
Date: Mon, 17 Nov 2003 14:25:41 -0800 (PST)
patricia larue
HELP!  This brick wall is too big and I'm running out
of time.  I've included my .xsl file below.  The first
template displays the names of the worksheet as
hyperlinks.  

I need to link to the second template to display the
worksheet and my href doesn't appear to be working.  

Right now all of the worksheets are in one xml file. 
There is no server involved.  Everything is happening
on the client.  Do I need an XSLT source such as Saxon
or MSXML? 

Thank you so much,
Patricia

**************************************************

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xptr="http://www.w3.org/TR/xptr">
	<xsl:variable
name="file">T1_CKHSJ7_50k-120@xxxxxxxxxxxxxxxxxxxxxxx</xsl:variable>
	<xsl:output method="html"/>
	<xsl:template match="/">
		<h2>
			<xsl:value-of select="$file"/>
		</h2>
		<TABLE BORDER="1" CELLPADDING="5">
			<THEAD>
				<TH>Worksheet Name</TH>
			</THEAD>
			<xsl:for-each select="ss:*/ss:Worksheet">
				<TR ALIGN="CENTER">
					<TD>
						<xsl:apply-templates select="Worksheet"/>
						<a>
							<xsl:attribute name="href">
							<xsl:call-template name="worksheetdata">
								<xsl:with-param name="sheetname"
select="@ss:Name"/>
       						 </xsl:call-template>
       						 </xsl:attribute>
       						 <xsl:value-of select="@ss:Name"/>
						</a>
					</TD>
				</TR>
			</xsl:for-each>
		</TABLE>
	</xsl:template>
	
	<xsl:template name="worksheetdata">
		<xsl:param name="sheetname"/>
		<html>
		<body>
		<center>
		<table border="2" width="100%">
		<xsl:for-each select="ss:*/ss:Worksheet">
			<xsl:if test="@ss:Name=string($sheetname)">
			<h1>This is a test</h1>
				<xsl:for-each select="ss:Table/ss:Row">
				<tr>
					<xsl:for-each select="ss:Cell">
					<td>
					<xsl:value-of
select="ss:Data"/><xsl:text></xsl:text>
					</td>
					</xsl:for-each>
				</tr>
				</xsl:for-each>
			</xsl:if>
		</xsl:for-each>
		</table>
		</center>
		</body>
		</html>
	</xsl:template>

</xsl:stylesheet>


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

 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.