File: internalXInclude.xml

package info (click to toggle)
r-cran-xml 3.99-0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,688 kB
  • sloc: ansic: 6,659; xml: 2,890; asm: 486; sh: 12; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<article
	 xmlns:xi="http://www.w3.org/2003/XInclude"
	 xmlns:r="http://www.r-project.org">
<title>This is the title</title>

<section>
<xi:include xpointer="xpointer(//title)"/>

<para>
This section should have the same title as the article.
</para>
<para>
<xi:include xpointer="xmlns(r=http://www.r-project.org)xpointer(//r:code[@id='foo'])"/>

<r:code>
<xi:include xpointer="xmlns(r=http://www.r-project.org)xpointer(//r:code[@id='foo']/text())"/>
y = 10*x + 3 + rnorm(length(x))
</r:code>
</para>
</section>


<r:code id="foo">
x = 1:10
</r:code>
</article>