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

XSL stylesheet syntax help

Subject: XSL stylesheet syntax help
From: dan@xxxxxxxxxxxxxxx
Date: Wed, 3 Dec 2003 08:47:51 -0500
xa0
Hey folks,

I have been trying to get the xsl document below to work for a few
days and am not having any luck.  I keep getting an error indicating
it is not a well formed xsl document.  I cannot find what I am doing
wrong so I am including the whole xsl in hopes that someone can explain
my mistake (possibly mistakes?).  Thanx in advance for any suggestions
you can offer.  Also, I have been using some websites to get the
basics of xsl, but as I have a lot of work to do in it now, I think I
need some better resources.  Is there a good website or book you all
recommend often for learning xslt from the ground up?


<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--Declare Variables -->
<xsl:param name="OrderedBy" select="''"/>
<xsl:param name="OrderedType" select="'ascending'"/>
<xsl:param name="gJobPositionGroupCode" select="''"/>
<xsl:param name="sMethod" select="''"/>
<xsl:param name="sSubsidiaryTieCode" select="''"/>

<xsl:template match="/">
      <xsl:for-each select="CCF/CCFNumber">
      <xsl:sort select="*[name()=$OrderedBy]" order="{$OrderedType}" data-type="number"/>
      <tr>
            <td><xsl:value-of select="CcfNumber"/><xsl:text>&#xA0;</xsl:text></td>
            <td><xsl:value-of select="Module"/><xsl:text>&#xA0;</xsl:text></td>
            <xsl:choose>
                  <xsl:when test="{$sMethod}='Product'">
                        <td><xsl:value-of select="IacDemo"/><xsl:text>&#xA0;</xsl:text></td>
                  </xsl:when>
            </xsl:choose>
            <xsl:choose>
                  <xsl:when test="<xsl:value-of select="InputType"/>='S'">
                        <td>X</td>
                  </xsl:when>
                  <xsl:otherwise>
                        <td><xsl:text>&#xA0;</xsl:text></td>
                  </xsl:otherwise>
            </xsl:choose>
            <xsl:choose>
                  <xsl:when test="{$sMethod}='Product'">
                        <xsl:choose>
                              <xsl:when test="{$sISPFlagOfModule}='Product'">
                                    <td><xsl:value-of select="ResignFlag"/><xsl:text>&#xA0;</xsl:text></td>
                                    <td><xsl:value-of select="DSLFlag"/><xsl:text>&#xA0;</xsl:text></td>
                              </xsl:when>
                              <xsl:otherwise>
                                    <td><xsl:value-of select="ResignFlag"/><xsl:text>&#xA0;</xsl:text></td>
                                    <td><xsl:value-of select="StrategicFlag"/><xsl:text>&#xA0;</xsl:text></td>
                              </xsl:otherwise>
                        </xsl:choose>
                  </xsl:when>
            </xsl:choose>
            <td><xsl:value-of select="ApprovedForCompensationFlag"/><xsl:text>&#xA0;</xsl:text></td>
            <td><xsl:value-of select="JobPositionCategoryCode"/><xsl:text>&#xA0;</xsl:text></td>
            <xsl:choose>
                  <xsl:when test="{$sMethod}='Product'">
                        <td><xsl:value-of select="ProductCode"/><xsl:text>&#xA0;</xsl:text></td>
                  </xsl:when>
                  <xsl:otherwise>
                        <td><xsl:text>&#xA0;</xsl:text></td>
                  </xsl:otherwise>
            </xsl:choose>
            <td><xsl:value-of select="Client"/><xsl:text>&#xA0;</xsl:text></td>
            <td><xsl:value-of select="CurAnnualValue"/><xsl:text>&#xA0;</xsl:text></td>
            <td><xsl:value-of select="CurQuotaValue"/><xsl:text>&#xA0;</xsl:text></td>
            <td><xsl:value-of select="ActualSaleDate_f"/><xsl:text>&#xA0;</xsl:text></td>
            <td NOWRAP></td>
            <td><xsl:value-of select="ActualInstDate"/><xsl:text>&#xA0;</xsl:text></td>
            <td><xsl:value-of select="EstInstDate"/><xsl:text>&#xA0;</xsl:text></td>
            <td>{$sSubsidiaryTieCode}</td>
            <td><xsl:value-of select="ChangeDate_f"/><xsl:text>&#xA0;</xsl:text></td>
      </tr>
      </xsl:for-each>
      <tr>
            <td colspan="20" border="0"><xsl:value-of select="count(ServiceOrder)"/></td>
      </tr>
</xsl:template></xsl:stylesheet>

  

-- 
Thanx,
 dan                          mailto:dan@xxxxxxxxxxxxxxx



 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.