File: test_xml_encoding.kid

package info (click to toggle)
kid 0.9.6-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,264 kB
  • ctags: 4,633
  • sloc: python: 7,417; makefile: 120; sh: 47; xml: 4
file content (19 lines) | stat: -rw-r--r-- 381 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="iso-8859-2"?>
<testdoc xmlns:py="http://purl.org/kid/ns#">

<?python
    encoding = 'iso-8859-2'
    a = '\xb5\xb9\xe8\xbb\xbe'.decode(encoding)
    e = '\xb5\xb9\xe8\xbb\xbe\xfd\xe1\xed'.decode(encoding)
?>

<test>
    <attempt>
        <e a="軾">軾</e>
    </attempt>
    <expect>
        <e a="$a">$e</e>
    </expect>
</test>

</testdoc>