summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLogan Saso <logansaso+tech@gmail.com>2020-10-04 14:18:21 -0700
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-05 09:02:56 +0200
commita2dfadc6c852d89e9900f81dec95bcee97df08b6 (patch)
treea2fc9a5f712ec847a151e0515dccd9c1f2e47b46 /tests
parent6df8b3fe72b0ccd77657bdda96c7f09dabfc09ce (diff)
#1213 Added example xml file
Diffstat (limited to 'tests')
-rw-r--r--tests/syntax-tests/highlighted/XML/example.xml22
-rw-r--r--tests/syntax-tests/source/XML/example.xml22
2 files changed, 44 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/XML/example.xml b/tests/syntax-tests/highlighted/XML/example.xml
new file mode 100644
index 00000000..4cde1a89
--- /dev/null
+++ b/tests/syntax-tests/highlighted/XML/example.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<?xml-stylesheet type="text/css" href="tutorials.css"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<!ENTITY name "Some text">
+<!ATTLIST tutorials type CDATA #REQUIRED>
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<root_element>
+ <!-- -->
+ <CASE_sensITIVE attribute="" another="false">
+ <trailing_slash/>
+ </CASE_sensITIVE>
+ <number_attribute42></number_attribute42>
+ <number42_trailingslash/>
+ <!-- Comment in Document -->
+ <xsl:complicated_attribute name="ab1234567890!@#$%^&amp;*()&gt;?&lt;,.';`~:\][{}">
+ </xsl:complicated_attribute>
+ <entity_use>&name;</entity_use>
+ <![CDATA[
+ Text you want to escape goes here...
+ ]]>
+</root_element>
+<!-- Comment after Document -->
diff --git a/tests/syntax-tests/source/XML/example.xml b/tests/syntax-tests/source/XML/example.xml
new file mode 100644
index 00000000..5f28f51a
--- /dev/null
+++ b/tests/syntax-tests/source/XML/example.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<?xml-stylesheet type="text/css" href="tutorials.css"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<!ENTITY name "Some text">
+<!ATTLIST tutorials type CDATA #REQUIRED>
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<root_element>
+ <!-- -->
+ <CASE_sensITIVE attribute="" another="false">
+ <trailing_slash/>
+ </CASE_sensITIVE>
+ <number_attribute42></number_attribute42>
+ <number42_trailingslash/>
+ <!-- Comment in Document -->
+ <xsl:complicated_attribute name="ab1234567890!@#$%^&amp;*()&gt;?&lt;,.';`~:\][{}">
+ </xsl:complicated_attribute>
+ <entity_use>&name;</entity_use>
+ <![CDATA[
+ Text you want to escape goes here...
+ ]]>
+</root_element>
+<!-- Comment after Document --> \ No newline at end of file