ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> visual-xslt-discuss
visual-xslt-discuss
[Visual-XSLT-discuss] different result betwen Visual-XSLT and MSXSLT?
by other posts by this author
Nov 28 2002 11:25AM messages near this date
view in the new Beta List Site
RE: [Visual-XSLT-discuss] Formatting/pretty-printing xml/xsl in the editor | RE: [Visual-XSLT-discuss] different result betwen Visual-XSLT and MSXSLT?
Why could I get a different result when I process a stylesheet with MSXSLT or Visual-XSLT?

I thought the point of using standards was just to avoid this...

Or is there anything dodgy in the XSL below?

<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'> 
<xsl:output method='html' indent='yes' encoding="UTF-8" /> 
<xsl:key name="CustomerIds" match="Customer/@CustomerId" use="."/> 
  <xsl:template match='/'> 
<HTML> 
     <BODY> 
  <table width="100%"> 
    <tr> 
      <td width="50%"  style="vertical-align: top;"> 
        <table bgcolor="pink"> 
          <xsl:apply-templates mode="Gauche" /> 
        </table> 
      </td> 
      <td> 
        <table bgcolor="yellow"> 
          <xsl:apply-templates mode="Droite" /> 
        </table> 
      </td> 
    </tr> 
  </table> <br/>
</BODY> 
</HTML> 
  </xsl:template> 
  <!-- populates Left Table --> 
     <xsl:template match="XMLROOT/Customer" mode="Gauche"> 
    <tr> 
      <td> 
        <a href="#{generate-id(@CustomerId)}"> 
          <xsl:value-of select="@CustomerId"/> 
        </a> 
      </td> 
    </tr> 
     </xsl:template> 
  <!-- Populates Right Table --> 
     <xsl:template match="XMLROOT/Customer" mode="Droite"> 
    <tr> 
      <td> 
        <a name="{generate-id(@CustomerId)}"> 
          <xsl:value-of select="@CustomerId"/> 
        </a> 
          <table width="100%"> 
          <xsl:for-each select="Order"> 
            <tr> <td><xsl:value-of select="@OrderId"></xsl:value-of></td></tr>
          </xsl:for-each> 
          </table> 
      </td> 
    </tr> 
     </xsl:template> 
</xsl:stylesheet> 



------------------------------------------------------------- ---
        Visit our Internet site at http://www.reuters.com

Get closer to the financial markets with Reuters Messaging - for more
information and to register, visit http://www.reuters.com/messaging

Any views expressed in this message are those of  the  individual
sender,  except  where  the sender specifically states them to be
the views of Reuters Ltd.
_______________________________________________
Visual-XSLT-discuss mailing list
Visual-XSLT-discuss@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved