This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: internal DTD-subset and CDATA-section
- To: XSLT-list <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] internal DTD-subset and CDATA-section
- From: Tobias Reif <tobiasreif at yahoo dot com>
- Date: Fri, 23 Mar 2001 10:23:54 -0800 (PST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Jeni,
> You can set the DOCTYPE declaration and the fact
> that you want to use
> a CDATA section (although as David C. said, there's
> no point in having
> one with the example as shown) using the xsl:output
> element:
Why is there no point?
Below is the complete desired output.
> There's no much point in defining entities unless
> you're going to use
> them, so presumably you'll also want to create
> entity references
> within your output.
sure. see below: (I hope it gets through without a
problem)
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
"http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd"
[
<!ENTITY fast-slow "0 0 .5 1">
<!ENTITY slow-fast ".5 0 1 1">
]>
<svg viewBox="0 0 800 600">
<style type="text/css"><![CDATA[
.balls {font: 30pt arial}
]]></style>
<defs>
<animate id="ani1a"
xlink:href="#ball1"
attributeName="x" begin="0s;ani11a.begin+1s" dur="2s"
to="100" fill="freeze"/>
<animate id="ani1b"
xlink:href="#ball1"
attributeName="y" begin="0s;ani11b.begin+1s" dur="2s"
calcMode="spline" keySplines="&fast-slow;;
&slow-fast;" values="400; 100; 400" keyTimes="0; 0.5;
1" fill="freeze"/>
<!-- more animation -->
</defs>
<g class="balls">
<text id="ball3" x="400"
y="400">3</text>
<text id="ball2" x="200"
y="400">2</text>
<text id="ball1" x="400"
y="400">1</text>
</g>
<g class="points">
<circle id="circle1" cx="100" cy="400"
r="2"/>
<circle id="circle2" cx="200" cy="400"
r="2"/>
<circle id="circle3" cx="400" cy="400"
r="2"/>
<circle id="circle4" cx="500" cy="400"
r="2"/>
</g>
</svg>
Thank you very much for your help!
Tobi
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list