generated from sethub/template
[libxml2]Add libxml2 library
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<!-- Empty DTD -->
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<?xml-stylesheet href="doc.xsl"
|
||||
type="text/xsl" ?>
|
||||
|
||||
<!DOCTYPE doc SYSTEM "doc.dtd">
|
||||
|
||||
<doc>Hello, world!<!-- Comment 1 --></doc>
|
||||
|
||||
<?pi-without-data ?>
|
||||
|
||||
<!-- Comment 2 -->
|
||||
|
||||
<!-- Comment 3 -->
|
||||
@@ -0,0 +1,11 @@
|
||||
<doc>
|
||||
<clean> </clean>
|
||||
<dirty> A B </dirty>
|
||||
<mixed>
|
||||
A
|
||||
<clean> </clean>
|
||||
B
|
||||
<dirty> A B </dirty>
|
||||
C
|
||||
</mixed>
|
||||
</doc>
|
||||
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE doc [<!ATTLIST e9 attr CDATA "default">]>
|
||||
<doc>
|
||||
<e1 />
|
||||
<e2 ></e2>
|
||||
<e3 name = "elem3" id="elem3" />
|
||||
<e4 name="elem4" id="elem4" ></e4>
|
||||
<e5 a:attr="out" b:attr="sorted" attr2="all" attr="I'm"
|
||||
xmlns:b="http://www.ietf.org"
|
||||
xmlns:a="http://www.w3.org"
|
||||
xmlns="http://www.uvic.ca"/>
|
||||
<e6 xmlns="" xmlns:a="http://www.w3.org">
|
||||
<e7 xmlns="http://www.ietf.org">
|
||||
<e8 xmlns="" xmlns:a="http://www.w3.org">
|
||||
<e9 xmlns="" xmlns:a="http://www.ietf.org"/>
|
||||
</e8>
|
||||
</e7>
|
||||
</e6>
|
||||
</doc>
|
||||
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE doc [<!ATTLIST normId id ID #IMPLIED>]>
|
||||
<doc>
|
||||
<text>First line
 Second line</text>
|
||||
<value>2</value>
|
||||
<compute><![CDATA[value>"0" && value<"10" ?"valid":"error"]]></compute>
|
||||
<compute expr='value>"0" && value<"10" ?"valid":"error"'>valid</compute>
|
||||
<norm attr=' '   
	 ' '/>
|
||||
<normId id=' '   
	 ' '/>
|
||||
</doc>
|
||||
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE doc [
|
||||
<!ATTLIST doc attrExtEnt ENTITY #IMPLIED>
|
||||
<!ENTITY ent1 "Hello">
|
||||
<!ENTITY ent2 SYSTEM "world.txt">
|
||||
<!ENTITY entExt SYSTEM "earth.gif" NDATA gif>
|
||||
<!NOTATION gif SYSTEM "viewgif.exe">
|
||||
]>
|
||||
<doc attrExtEnt="entExt">
|
||||
&ent1;, &ent2;!
|
||||
</doc>
|
||||
|
||||
<!-- Let world.txt contain "world" (excluding the quotes) -->
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<doc>©</doc>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE doc [
|
||||
<!ATTLIST e2 xml:space (default|preserve) 'preserve'>
|
||||
<!ATTLIST e3 id ID #IMPLIED>
|
||||
]>
|
||||
<doc xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org">
|
||||
<e1>
|
||||
<e2 xmlns="">
|
||||
<e3 id="E3"/>
|
||||
</e2>
|
||||
</e1>
|
||||
</doc>
|
||||
@@ -0,0 +1,10 @@
|
||||
<XPath xmlns:ietf="http://www.ietf.org" >
|
||||
(//.|//@*|//namespace::*)
|
||||
[
|
||||
self::ietf:e1
|
||||
or
|
||||
(parent::ietf:e1 and not(self::text() or self::e2))
|
||||
or
|
||||
count(id("E3")|ancestor-or-self::node()) = count(ancestor-or-self::node())
|
||||
]
|
||||
</XPath>
|
||||
@@ -0,0 +1 @@
|
||||
world
|
||||
Reference in New Issue
Block a user