Re: Bug in tal2xls?
Christian Stocker <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Organization | Bitflux GmbH |
| Message-ID | <[email protected]> |
Hi
What do you expect as output. I get
<select>
<option>
<span>one</span>
</option>
<option>
<span>two</span>
</option>
<option>
<span>three</span>
</option>
</select>
which seems ok to me :)
chregu
On 28.12.2005 20:26 Uhr, Joachim Zobel wrote:
> Hi.
>
> I ran the attached testcases against tal2xsl.xsl. I am not shure what is
> expected behaviour, so I am not shure if these are bugs.
>
> Can anybody please shed some light on this.
>
> Anyway, tal2xsl is a pretty cool way to get around the fact, that xslt
> is no a template engine.
>
> Sincerely,
> Joachim
>
> ------------------------------------------------------------------
> <p>
> <!-- content does not work -->
> <select>
> <option tal:repeat="opt test/repeat/opt"
> ><span tal:content="$opt/text">Text</span></option>
> </select>
>
> <!-- works as expected, both attributes and replace -->
> <select>
> <option tal:repeat="opt test/repeat/opt"
> tal:attributes="value $opt/value"
> ><span tal:replace="$opt/text">Text</span></option>
> </select>
>
> <!-- selected="selected" occurs in all option tags -->
> <select>
> <option tal:repeat="opt test/repeat/opt"
> tal:attributes="selected $opt/selected"
> ><span tal:replace="$opt/text">Text</span></option>
> </select>
> </p>
>
> ------------------------------------------------------------------
> data:
> ------------------------------------------------------------------
> <?xml version='1.0' encoding='UTF-8'?>
> <test>
> <repeat>
> <opt><value>1</value><text>one</text></opt>
> <opt><value>2</value><text>two</text></opt>
> <opt><value>3</value><text>three</text>
> <selected>selected</selected></opt>
> </repeat>
> </test>
>
>
>
>
>
>
>
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected] | GPG 0x5CE1DECB
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms