Debian Codegraph @

samples/tests/spec/text/textPCDATA.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
5 <!--
6
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22 -->
23 <!-- ========================================================================= -->
24 <!-- Validates that CDATA sections in &lt;text&gt; elements are supported. -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ========================================================================= -->
29 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
30
31 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="450" height="500" viewBox="0 0 450 500">
32
33 <g id="content">
34
35 <text class="title" x="50%" y="30">Character Data on &lt;text&gt;</text>
36
37 <!-- Simple case: CDATA only -->
38 <g class="label" text-anchor="middle" transform="translate(225, 120)">
39 <text>CDATA only</text>
40 <text fill="crimson" y="20"><![CDATA[<text> with a CDATA section]]></text>
41 </g>
42
43 <!-- text, CDATA, text -->
44 <g class="label" text-anchor="middle" transform="translate(225, 180)">
45 <text>text, CDATA, text</text>
46 <text fill="crimson" y="20" >Text first, then <![CDATA[CDATA section in <text>]]>, text again</text>
47 </g>
48
49 <!-- text, CDATA, tspan, CDATA, text -->
50 <g class="label" text-anchor="middle" transform="translate(225, 240)">
51 <text>text, CDATA, tspan, CDATA, text</text>
52 <text fill="crimson" y="20">text, <![CDATA[CDATA section in <text>]]>, <tspan fill="gold">tspan w/<![CDATA[CDATA section in <tspan>]]></tspan>, text again</text>
53 </g>
54
55 </g>
56 </svg>