diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/syntax-tests/highlighted/XML/example.xml | 22 | ||||
-rw-r--r-- | tests/syntax-tests/source/XML/example.xml | 22 |
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 @@ +[38;2;255;255;255m<?[0m[38;2;249;38;114mxml[0m[38;2;248;248;242m [0m[38;2;166;226;46mversion[0m[38;2;248;248;242m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116m1.0[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;166;226;46mencoding[0m[38;2;248;248;242m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mutf-8[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;166;226;46mstandalone[0m[38;2;248;248;242m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mno[0m[38;2;230;219;116m"[0m[38;2;255;255;255m?>[0m +[38;2;255;255;255m<?[0m[38;2;249;38;114mxml-stylesheet[0m[38;2;248;248;242m [0m[38;2;166;226;46mtype[0m[38;2;248;248;242m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mtext/css[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;166;226;46mhref[0m[38;2;248;248;242m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mtutorials.css[0m[38;2;230;219;116m"[0m[38;2;255;255;255m?>[0m +[38;2;255;255;255m<[0m[38;2;249;38;114mxsl[0m[38;2;249;38;114m:[0m[38;2;249;38;114mstylesheet[0m[38;2;248;248;242m [0m[38;2;166;226;46mversion[0m[38;2;248;248;242m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116m1.0[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;166;226;46mxmlns[0m[38;2;166;226;46m:[0m[38;2;166;226;46mxsl[0m[38;2;248;248;242m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mhttp://www.w3.org/1999/XSL/Transform[0m[38;2;230;219;116m"[0m[38;2;255;255;255m>[0m +[38;2;248;248;240m<[0m[38;2;248;248;242m!ENTITY name "Some text">[0m +[38;2;248;248;240m<[0m[38;2;248;248;242m!ATTLIST tutorials type CDATA #REQUIRED>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<![0m[38;2;249;38;114mDOCTYPE[0m[38;2;200;206;204m [0m[38;2;255;255;255mhtml[0m[38;2;200;206;204m [0m[3;38;2;102;217;239mPUBLIC[0m[38;2;200;206;204m [0m[38;2;230;219;116m"[0m[38;2;230;219;116m-//W3C//DTD XHTML 1.0 Transitional//EN[0m[38;2;230;219;116m"[0m[38;2;200;206;204m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[0m[38;2;230;219;116m"[0m[38;2;255;255;255m>[0m +[38;2;255;255;255m<[0m[38;2;249;38;114mroot_element[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;117;113;94m<!--[0m[38;2;117;113;94m [0m[38;2;117;113;94m-->[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mCASE_sensITIVE[0m[38;2;248;248;242m [0m[38;2;166;226;46mattribute[0m[38;2;248;248;242m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;166;226;46manother[0m[38;2;248;248;242m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mfalse[0m[38;2;230;219;116m"[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtrailing_slash[0m[38;2;255;255;255m/>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mCASE_sensITIVE[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mnumber_attribute42[0m[38;2;255;255;255m>[0m[38;2;255;255;255m</[0m[38;2;249;38;114mnumber_attribute42[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mnumber42_trailingslash[0m[38;2;255;255;255m/>[0m +[38;2;248;248;242m [0m[38;2;117;113;94m<!--[0m[38;2;117;113;94m Comment in Document [0m[38;2;117;113;94m-->[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mxsl[0m[38;2;249;38;114m:[0m[38;2;249;38;114mcomplicated_attribute[0m[38;2;248;248;242m [0m[38;2;166;226;46mname[0m[38;2;248;248;242m=[0m[38;2;230;219;116m"[0m[38;2;230;219;116mab1234567890!@#$%^[0m[38;2;190;132;255m&[0m[38;2;190;132;255mamp[0m[38;2;190;132;255m;[0m[38;2;230;219;116m*()[0m[38;2;190;132;255m&[0m[38;2;190;132;255mgt[0m[38;2;190;132;255m;[0m[38;2;230;219;116m?[0m[38;2;190;132;255m&[0m[38;2;190;132;255mlt[0m[38;2;190;132;255m;[0m[38;2;230;219;116m,.';`~:\][{}[0m[38;2;230;219;116m"[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mxsl[0m[38;2;249;38;114m:[0m[38;2;249;38;114mcomplicated_attribute[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mentity_use[0m[38;2;255;255;255m>[0m[38;2;190;132;255m&[0m[38;2;190;132;255mname[0m[38;2;190;132;255m;[0m[38;2;255;255;255m</[0m[38;2;249;38;114mentity_use[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<![[0m[38;2;249;38;114mCDATA[0m[38;2;255;255;255m[[0m +[38;2;230;219;116m Text you want to escape goes here...[0m +[38;2;230;219;116m [0m[38;2;255;255;255m]]>[0m +[38;2;255;255;255m</[0m[38;2;249;38;114mroot_element[0m[38;2;255;255;255m>[0m +[38;2;117;113;94m<!--[0m[38;2;117;113;94m Comment after Document [0m[38;2;117;113;94m-->[0m 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!@#$%^&*()>?<,.';`~:\][{}"> + </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 |