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

Re: xsl:apply-template and xsl:for-ech confusion again

Subject: Re: xsl:apply-template and xsl:for-ech confusion again
From: "Werner, Wolfgang" <mail@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 01 Oct 2004 15:35:57 +0200
mozdev xsl
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Luke,

could you tell us for which values of the variables $searchby, $sector
and $subsector the error occurs?

Regards,
Wolfgang

Luke Ambrogio wrote:

| To riterate
|
| I have
|
| <xsl:template match="tblMIM">
|     <xsl:choose>
|         <xsl:when test="$searchby=0">
|             <xsl:for-each
| select="tblMIMCompanies/tblMIMSubSectors[@subsectorID=$subsector]">
|                 <xsl:apply-templates select="tblMIMCompanies"/>
|             </xsl:for-each>
|         </xsl:when>
|         <xsl:otherwise>
|             <xsl:for-each
| select="tblMIMCompanies/tblMIMSubSectors[@sectorID=$sector]">
|                  <xsl:apply-templates select="tblMIMCompanies"/>
|             </xsl:for-each>
|         </xsl:otherwise>
|     </xsl:choose>
| </xsl:template>
|
| <xsl:template match="tblMIMCompanies">
|     <table width="100%">
|         <tr>
|             <td width="100">Name:</td>
|             <td><xsl:value-of select="@name"/></td>
|         </tr>
|         <tr>
|             <td width="100">Building:</td>
|             <td><xsl:value-of select="@building"/></td>
|         </tr>
|     </table>
| </xsl:template>
|
| the xml looks like
|
| <tblMIM>
|     <tblMIMCompanies name="A Ltd" building="A House">
|         <tblMIMSubSectors subsectorID="55" sectorID="3"/>
|     </tblMIMCompanies>
|     <tblMIMCompanies name="B Ltd" building="B House">
|         <tblMIMSubSectors subsectorID="25" sectorID="4"/>
|     </tblMIMCompanies>
| </tblMIM>
|
| but i have no output. any ideas?
|
| regards
| Luke
|
|
|
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBXV09qjaicDyx8o8RAmnzAJoC5Xp0sIQ/ec+qCr4Tf1Se3YutpwCfUjqG
NO83/CIYd1nawNCPiAz6lio=
=eqz1
-----END PGP SIGNATURE-----

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.