<< Introduction XML Bridge Tests Cards and Holdings >>

Calls and Contracts

All Calls

Input:
<p>Calls: 
<call code="P"/>, <call code="X"/>, <call code="XX"/>,
<call code="1C"/>, <call code="1D"/>, <call code="1H"/>, 
<call code="1S"/>, <call code="1N"/>,
<call code="2C"/>, <call code="2D"/>, <call code="2H"/>, 
<call code="2S"/>, <call code="2N"/>,
<call code="3C"/>, <call code="3D"/>, <call code="3H"/>, 
<call code="3S"/>, <call code="3N"/>,
<call code="4C"/>, <call code="4D"/>, <call code="4H"/>, 
<call code="4S"/>, <call code="4N"/>,
<call code="5C"/>, <call code="5D"/>, <call code="5H"/>, 
<call code="5S"/>, <call code="5N"/>,
<call code="6C"/>, <call code="6D"/>, <call code="6H"/>, 
<call code="6S"/>, <call code="6N"/>,
<call code="7C"/>, <call code="7D"/>, <call code="7H"/>, 
<call code="7S"/>, <call code="7N"/>.
</p> 
XSL Output:
Calls: Pass, Dbl, Rdbl, 1 , 1 , 1 , 1 , 1 NT, 2 , 2 , 2 , 2 , 2 NT, 3 , 3 , 3 , 3 , 3 NT, 4 , 4 , 4 , 4 , 4 NT, 5 , 5 , 5 , 5 , 5 NT, 6 , 6 , 6 , 6 , 6 NT, 7 , 7 , 7 , 7 , 7 NT.
All possible calls. Calls are formatted with spaces between the suit and the symbol, as per Pavlicek. Line breaks should not occur mid-call - this is controlled by the CSS file. There should be no spaces after the suit symbols and before the next character (commas and periods above.)

Contracts

Input:
<p>Contract: <contract code="4C" declarer="S"/></p>

<p>Contract: <contract code="5S"/></p>

<p> When you have a choice of
    <contract code="4SXX" declarer="S"/> 
    or <contract code="5DX" declarer="N"/>,
    you'll probably prefer the diamond contract,
    unless you are a risk-taker.
</p>
XSL Output:
Contract: 4 by South
Contract: 5
When you have a choice of 4 xx by South or 5 x by North, you'll probably prefer the diamond contract, unless you are a risk-taker.
Some example contracts.
<< Introduction
Thomas Andrews (bridge@thomasoandrews.com), © 2002-2009.
Cards and Holdings >>
Article formatted with BridgeML.