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

RE: xsl-list question

Subject: RE: xsl-list question
From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx>
Date: Wed, 26 Apr 2000 11:07:40 -0700
RE: xsl-list question
In the namespace http://www.w3.org/TR/WD-xsl, you can use context() instead
of current(), but there is not equivalent to the following:: axis, so at the
very least a major logic revision is necessary.  I suspect it will prove
impossible to do.  XSLT has much more functionality than IE5 XSL, and it is
not always possible to down-translate stylesheets.

- Jonathan Marsh
  Microsoft

> -----Original Message-----
> From: Joseph Tak Kin Tam [mailto:JTam@xxxxxxxxxxxx]
> Sent: Wednesday, April 26, 2000 5:18 AM
> To: 'xsl-list@xxxxxxxxxxxxxxxx'
> Subject: xsl-list question
> 
> 
> I was offered a solution from a previous problem but I can't 
> seem to get it
> to work in IE5, I am guessing that it is using some 
> unsupported commands,
> can somebody confirm?
> 
> Here's the solution:
> 
> <xsl:template match="/">
> 	<HTML>
> 	<BODY>
> 	<xsl:for-each select="Table/Partner//Type[not(. = 
> following::Type)]
> | Table/Partner//Division[not(. = following::Division)] |
> Table/Partner//ChannelRep[not(. = following::ChannelRep)]">  
>  		<UL><xsl:value-of select="Type"/>
> 			<UL><xsl:value-of select="Division"/> 
> 		    	<UL><xsl:value-of select="."/>
> 		    	<xsl:for-each
> select="//Partner[ChannelRep=current()]">
> 			        <UL><A> 
> 					<xsl:attribute
> name="href">http://W1116207/channel/echo.asp?value=<xsl:value-of
> select="Name"/>
> 					</xsl:attribute>  
> 					<xsl:attribute
> name="target">view</xsl:attribute>   
> 					<xsl:value-of select="Name"/>
> 					</A></UL>
> 			 	</xsl:for-each>
> 				</UL>  
> 		 	</UL>
> 		</UL> 
> 	</xsl:for-each> 
> 		
> 	</BODY>
> 	</HTML>
> </xsl:template>
> 
> IE5 doesn't like the :: and the current() lines.. what can I do?
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.