Skip to content

Commit

Permalink
sharkdp#1213 Added example xml file
Browse files Browse the repository at this point in the history
  • Loading branch information
loganintech committed Oct 4, 2020
1 parent 3af7a6b commit f428305
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/syntax-tests/highlighted/XML/example.xml
Original file line number Diff line number Diff line change
@@ -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 -->
22 changes: 22 additions & 0 deletions tests/syntax-tests/source/XML/example.xml
Original file line number Diff line number Diff line change
@@ -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 -->

0 comments on commit f428305

Please sign in to comment.