Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New test suite dependencies to better handle HTML versions (support a…
…nd default) for serialized output; + new tests for serialization edge cases
- Loading branch information
Debbie Lockett
authored and
Debbie Lockett
committed
Nov 29, 2019
1 parent
b21c1d3
commit 82a0f7a
Showing
11 changed files
with
391 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> | ||
|
||
<!-- test that characters produced by a character map are immune to Unicode normalization --> | ||
|
||
<xsl:character-map name="map01"> | ||
<xsl:output-character character="c" string="#ç#"/> | ||
</xsl:character-map> | ||
|
||
<xsl:output method="xml" use-character-maps="map01" normalization-form="NFD"/> | ||
|
||
<xsl:template match="/"> | ||
<out att="abcçde">abcçde</out> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<t:transform xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:t="http://www.w3.org/1999/XSL/Transform" | ||
version="2.0"> | ||
|
||
<t:output method="xhtml" | ||
cdata-section-elements="example" | ||
indent="no" | ||
encoding="US-ASCII"/> | ||
<!-- Purpose: Test XHTML output with cdata-section-elements that have non-ASCII character --> | ||
|
||
<t:template match="/"> | ||
<html> | ||
<out> | ||
<example>foo ª bar</example> | ||
</out> | ||
</html> | ||
</t:template> | ||
</t:transform> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<t:transform xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:t="http://www.w3.org/1999/XSL/Transform" | ||
version="2.0"> | ||
|
||
<t:output method="xhtml" | ||
cdata-section-elements="example" | ||
indent="no" | ||
encoding="US-ASCII" | ||
use-character-maps="format1" /> | ||
<!-- Purpose: Test XHTML output with cdata-section-elements that have non-ASCII character --> | ||
|
||
<t:character-map name="format1"> | ||
<t:output-character character="ª" string="A"/> | ||
</t:character-map> | ||
|
||
<t:template match="/"> | ||
<html> | ||
<out> | ||
<example>foo ª bar</example> | ||
</out> | ||
</html> | ||
</t:template> | ||
</t:transform> |
Oops, something went wrong.