M
mark4asp
I'm getting a problem with this code and I think the offending linke is
:
<xsl:if test="$folder = 'Search'">
I want to test the value of the Folder element for a value of precisely
"Search" and include the extra html as shown below if the test passes.
The rest of the code validates and so, I hope, works.
What am I doing so very wrong here?
This is a relevant fragment of the xml:
<BatchEmail>
<Domain>www.mydomain.com</Domain>
<Destination>
<Folder>Search</Folder>
</Destination>
...
...
<BatchEmail>
Here is my problem code snippet. When I cut this snippet (below) out
the rest of the code parses with no problems:
blah blah...
<xsl:variable name="domain" select="BatchEmail/Domain" />
<xsl:variable name="folder" select="BatchEmail/Destination/Folder" />
blah blah blah...
<xsl:if test="$folder = 'Search'">
<table cellspacing="0">
<tr>
<th class="link"><a href="http://{$domain}/Search/Search.aspx"><span
class="full">Search Database</span></a></th>
</tr>
<tr>
<td>Search over 5000 reports on over 1600 investors.<br /><a
class="blue" href="http://{$domain}/Search/Search.aspx">click
here.</a><br/><br/></td>
</tr>
<tr>
<th class="link"><a
href="http://{$domain}/Analysis/Analysis.aspx"><span
class="full">Analysis</span></a></th>
</tr>
<tr>
<td>Monitor contract wins, cross reference based on consultant,
mandate size, asset class, investment style and manager. Generate your
own league tables of manager inflows and mandate wins. Analyse capital
flows broken down by asset class and identify trends in consultant
manager selections.<br /><a class="blue"
href="http://{$domain}/Analysis/Analysis.aspx">click
here.</a><br/><br/></td>
</tr>
<tr>
<th class="link"><a href="http://{$domain}/Survey/Survey.aspx"><span
class="full">Marketplace Survey</span></a></th>
</tr>
<tr>
<td>Quarterly Report. Coverage on the major deals, quantifiable net
inflows and out flow charts, net capital flows by asset class and style
and number of investors expressing an interest in a particular asset
class.<br /><a class="blue"
href="http://{$domain}/Survey/Survey.aspx">click here.</a></td>
</tr>
</table>
</xsl:if>
blah blah blah blah...
:
<xsl:if test="$folder = 'Search'">
I want to test the value of the Folder element for a value of precisely
"Search" and include the extra html as shown below if the test passes.
The rest of the code validates and so, I hope, works.
What am I doing so very wrong here?
This is a relevant fragment of the xml:
<BatchEmail>
<Domain>www.mydomain.com</Domain>
<Destination>
<Folder>Search</Folder>
</Destination>
...
...
<BatchEmail>
Here is my problem code snippet. When I cut this snippet (below) out
the rest of the code parses with no problems:
blah blah...
<xsl:variable name="domain" select="BatchEmail/Domain" />
<xsl:variable name="folder" select="BatchEmail/Destination/Folder" />
blah blah blah...
<xsl:if test="$folder = 'Search'">
<table cellspacing="0">
<tr>
<th class="link"><a href="http://{$domain}/Search/Search.aspx"><span
class="full">Search Database</span></a></th>
</tr>
<tr>
<td>Search over 5000 reports on over 1600 investors.<br /><a
class="blue" href="http://{$domain}/Search/Search.aspx">click
here.</a><br/><br/></td>
</tr>
<tr>
<th class="link"><a
href="http://{$domain}/Analysis/Analysis.aspx"><span
class="full">Analysis</span></a></th>
</tr>
<tr>
<td>Monitor contract wins, cross reference based on consultant,
mandate size, asset class, investment style and manager. Generate your
own league tables of manager inflows and mandate wins. Analyse capital
flows broken down by asset class and identify trends in consultant
manager selections.<br /><a class="blue"
href="http://{$domain}/Analysis/Analysis.aspx">click
here.</a><br/><br/></td>
</tr>
<tr>
<th class="link"><a href="http://{$domain}/Survey/Survey.aspx"><span
class="full">Marketplace Survey</span></a></th>
</tr>
<tr>
<td>Quarterly Report. Coverage on the major deals, quantifiable net
inflows and out flow charts, net capital flows by asset class and style
and number of investors expressing an interest in a particular asset
class.<br /><a class="blue"
href="http://{$domain}/Survey/Survey.aspx">click here.</a></td>
</tr>
</table>
</xsl:if>
blah blah blah blah...