Bug in tal2xls?

Joachim Zobel <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Organization Not organized
Message-ID <[email protected]>
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>







-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.