-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
For more details see https://issues.ibexa.co/browse/IBX-3988 and #64 * Added support for styled itemized list * Added support for styled ordered list
- Loading branch information
Showing
10 changed files
with
327 additions
and
0 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
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
88 changes: 88 additions & 0 deletions
88
tests/lib/RichText/Converter/Xslt/_fixtures/docbook/036-itemizedListFormatted.xml
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,88 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section xmlns="http://docbook.org/ns/docbook" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" | ||
xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" | ||
version="5.0-variant ezpublish-1.0"> | ||
<itemizedlist mark="disc"> | ||
<ezattribute> | ||
<ezvalue key="name-1">value 1</ezvalue> | ||
<ezvalue key="name-2">value 2</ezvalue> | ||
<ezvalue key="name-3">value 3</ezvalue> | ||
</ezattribute> | ||
<listitem ezxhtml:class="listItemClass"> | ||
<ezattribute> | ||
<ezvalue key="name-2">value 2</ezvalue> | ||
</ezattribute> | ||
<para ezxhtml:class="listItemClass"> | ||
<ezattribute> | ||
<ezvalue key="name-2">value 2</ezvalue> | ||
</ezattribute>This is a list item.</para> | ||
</listitem> | ||
<listitem ezxhtml:class="listItemClass"> | ||
<ezattribute> | ||
<ezvalue key="name-3">value 3</ezvalue> | ||
</ezattribute> | ||
<para ezxhtml:class="listItemClass"> | ||
<ezattribute> | ||
<ezvalue key="name-3">value 3</ezvalue> | ||
</ezattribute> | ||
<literallayout class="normal">This is a list item | ||
with a line break.</literallayout> | ||
</para> | ||
</listitem> | ||
</itemizedlist> | ||
<itemizedlist mark="circle"> | ||
<ezattribute> | ||
<ezvalue key="name-1">value 1</ezvalue> | ||
<ezvalue key="name-2">value 2</ezvalue> | ||
<ezvalue key="name-3">value 3</ezvalue> | ||
</ezattribute> | ||
<listitem ezxhtml:class="listItemClass"> | ||
<ezattribute> | ||
<ezvalue key="name-2">value 2</ezvalue> | ||
</ezattribute> | ||
<para ezxhtml:class="listItemClass"> | ||
<ezattribute> | ||
<ezvalue key="name-2">value 2</ezvalue> | ||
</ezattribute>This is a list item.</para> | ||
</listitem> | ||
<listitem ezxhtml:class="listItemClass"> | ||
<ezattribute> | ||
<ezvalue key="name-3">value 3</ezvalue> | ||
</ezattribute> | ||
<para ezxhtml:class="listItemClass"> | ||
<ezattribute> | ||
<ezvalue key="name-3">value 3</ezvalue> | ||
</ezattribute> | ||
<literallayout class="normal">This is a list item | ||
with a line break.</literallayout> | ||
</para> | ||
</listitem> | ||
</itemizedlist> | ||
<itemizedlist mark="square"> | ||
<ezattribute> | ||
<ezvalue key="name-1">value 1</ezvalue> | ||
<ezvalue key="name-2">value 2</ezvalue> | ||
<ezvalue key="name-3">value 3</ezvalue> | ||
</ezattribute> | ||
<listitem ezxhtml:class="listItemClass"> | ||
<ezattribute> | ||
<ezvalue key="name-2">value 2</ezvalue> | ||
</ezattribute> | ||
<para ezxhtml:class="listItemClass"><ezattribute><ezvalue key="name-2">value 2</ezvalue></ezattribute>This is a list item.</para> | ||
</listitem> | ||
<listitem ezxhtml:class="listItemClass"> | ||
<ezattribute> | ||
<ezvalue key="name-3">value 3</ezvalue> | ||
</ezattribute> | ||
<para ezxhtml:class="listItemClass"> | ||
<ezattribute> | ||
<ezvalue key="name-3">value 3</ezvalue> | ||
</ezattribute> | ||
<literallayout class="normal">This is a list item | ||
with a line break.</literallayout> | ||
</para> | ||
</listitem> | ||
</itemizedlist> | ||
</section> |
72 changes: 72 additions & 0 deletions
72
tests/lib/RichText/Converter/Xslt/_fixtures/docbook/037-orderedListFormatted.xml
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,72 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section xmlns="http://docbook.org/ns/docbook" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" | ||
xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" | ||
version="5.0-variant ezpublish-1.0"> | ||
<para>default</para> | ||
<orderedlist> | ||
<listitem> | ||
<para>default 1</para> | ||
</listitem> | ||
<listitem> | ||
<para>default 2</para> | ||
</listitem> | ||
</orderedlist> | ||
<para>decimal</para> | ||
<orderedlist numeration="arabic"> | ||
<listitem> | ||
<para>decimal 1</para> | ||
</listitem> | ||
<listitem> | ||
<para>decimal 2</para> | ||
</listitem> | ||
</orderedlist> | ||
<para>decimal leading zero</para> | ||
<orderedlist numeration="arabicleadingzero"> | ||
<listitem> | ||
<para>decimal leading zero 1</para> | ||
</listitem> | ||
<listitem> | ||
<para>decimal leading zero 2</para> | ||
</listitem> | ||
</orderedlist> | ||
<para>lower roman</para> | ||
<orderedlist numeration="lowerroman"> | ||
<listitem> | ||
<para>lower roman 1</para> | ||
</listitem> | ||
<listitem> | ||
<para>lower roman 2</para> | ||
</listitem> | ||
</orderedlist> | ||
<para>upper roman</para> | ||
<orderedlist numeration="upperroman"> | ||
<listitem> | ||
<para>upper roman 1</para> | ||
</listitem> | ||
</orderedlist> | ||
<orderedlist> | ||
<listitem> | ||
<para>upper roman 2</para> | ||
</listitem> | ||
</orderedlist> | ||
<para>lower latin</para> | ||
<orderedlist numeration="loweralpha"> | ||
<listitem> | ||
<para>lower latin 1</para> | ||
</listitem> | ||
<listitem> | ||
<para>lower latin 2</para> | ||
</listitem> | ||
</orderedlist> | ||
<para>upper latin</para> | ||
<orderedlist numeration="upperalpha"> | ||
<listitem> | ||
<para>upper latin 1</para> | ||
</listitem> | ||
<listitem> | ||
<para>upper latin 2</para> | ||
</listitem> | ||
</orderedlist> | ||
</section> |
15 changes: 15 additions & 0 deletions
15
tests/lib/RichText/Converter/Xslt/_fixtures/xhtml5/edit/036-itemizedListFormatted.xml
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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"> | ||
<ul style="list-style-type:disc;" data-ezattribute-name-1="value 1" data-ezattribute-name-2="value 2" data-ezattribute-name-3="value 3"> | ||
<li class="listItemClass" data-ezattribute-name-2="value 2">This is a list item.</li> | ||
<li class="listItemClass" data-ezattribute-name-3="value 3">This is a list item<br/>with a line break.</li> | ||
</ul> | ||
<ul style="list-style-type:circle;" data-ezattribute-name-1="value 1" data-ezattribute-name-2="value 2" data-ezattribute-name-3="value 3"> | ||
<li class="listItemClass" data-ezattribute-name-2="value 2">This is a list item.</li> | ||
<li class="listItemClass" data-ezattribute-name-3="value 3">This is a list item<br/>with a line break.</li> | ||
</ul> | ||
<ul style="list-style-type:square;" data-ezattribute-name-1="value 1" data-ezattribute-name-2="value 2" data-ezattribute-name-3="value 3"> | ||
<li class="listItemClass" data-ezattribute-name-2="value 2">This is a list item.</li> | ||
<li class="listItemClass" data-ezattribute-name-3="value 3">This is a list item<br/>with a line break.</li> | ||
</ul> | ||
</section> |
40 changes: 40 additions & 0 deletions
40
tests/lib/RichText/Converter/Xslt/_fixtures/xhtml5/edit/037-orderedListFormatted.xml
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,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"> | ||
<p>default</p> | ||
<ol> | ||
<li>default 1</li> | ||
<li>default 2</li> | ||
</ol> | ||
<p>decimal</p> | ||
<ol style="list-style-type:decimal;"> | ||
<li>decimal 1</li> | ||
<li>decimal 2</li> | ||
</ol> | ||
<p>decimal leading zero</p> | ||
<ol style="list-style-type:decimal-leading-zero;"> | ||
<li>decimal leading zero 1</li> | ||
<li>decimal leading zero 2</li> | ||
</ol> | ||
<p>lower roman</p> | ||
<ol style="list-style-type:lower-roman;"> | ||
<li>lower roman 1</li> | ||
<li>lower roman 2</li> | ||
</ol> | ||
<p>upper roman</p> | ||
<ol style="list-style-type:upper-roman;"> | ||
<li>upper roman 1</li> | ||
</ol> | ||
<ol> | ||
<li>upper roman 2</li> | ||
</ol> | ||
<p>lower latin</p> | ||
<ol style="list-style-type:lower-latin;"> | ||
<li>lower latin 1</li> | ||
<li>lower latin 2</li> | ||
</ol> | ||
<p>upper latin</p> | ||
<ol style="list-style-type:upper-latin;"> | ||
<li>upper latin 1</li> | ||
<li>upper latin 2</li> | ||
</ol> | ||
</section> |
15 changes: 15 additions & 0 deletions
15
tests/lib/RichText/Converter/Xslt/_fixtures/xhtml5/output/036-itemizedListFormatted.xml
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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5"> | ||
<ul style="list-style-type:disc;" data-ezattribute-name-1="value 1" data-ezattribute-name-2="value 2" data-ezattribute-name-3="value 3"> | ||
<li class="listItemClass" data-ezattribute-name-2="value 2">This is a list item.</li> | ||
<li class="listItemClass" data-ezattribute-name-3="value 3">This is a list item<br/>with a line break.</li> | ||
</ul> | ||
<ul style="list-style-type:circle;" data-ezattribute-name-1="value 1" data-ezattribute-name-2="value 2" data-ezattribute-name-3="value 3"> | ||
<li class="listItemClass" data-ezattribute-name-2="value 2">This is a list item.</li> | ||
<li class="listItemClass" data-ezattribute-name-3="value 3">This is a list item<br/>with a line break.</li> | ||
</ul> | ||
<ul style="list-style-type:square;" data-ezattribute-name-1="value 1" data-ezattribute-name-2="value 2" data-ezattribute-name-3="value 3"> | ||
<li class="listItemClass" data-ezattribute-name-2="value 2">This is a list item.</li> | ||
<li class="listItemClass" data-ezattribute-name-3="value 3">This is a list item<br/>with a line break.</li> | ||
</ul> | ||
</section> |
40 changes: 40 additions & 0 deletions
40
tests/lib/RichText/Converter/Xslt/_fixtures/xhtml5/output/037-orderedListFormatted.xml
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,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5"> | ||
<p>default</p> | ||
<ol> | ||
<li>default 1</li> | ||
<li>default 2</li> | ||
</ol> | ||
<p>decimal</p> | ||
<ol style="list-style-type:decimal;"> | ||
<li>decimal 1</li> | ||
<li>decimal 2</li> | ||
</ol> | ||
<p>decimal leading zero</p> | ||
<ol style="list-style-type:decimal-leading-zero;"> | ||
<li>decimal leading zero 1</li> | ||
<li>decimal leading zero 2</li> | ||
</ol> | ||
<p>lower roman</p> | ||
<ol style="list-style-type:lower-roman;"> | ||
<li>lower roman 1</li> | ||
<li>lower roman 2</li> | ||
</ol> | ||
<p>upper roman</p> | ||
<ol style="list-style-type:upper-roman;"> | ||
<li>upper roman 1</li> | ||
</ol> | ||
<ol> | ||
<li>upper roman 2</li> | ||
</ol> | ||
<p>lower latin</p> | ||
<ol style="list-style-type:lower-latin;"> | ||
<li>lower latin 1</li> | ||
<li>lower latin 2</li> | ||
</ol> | ||
<p>upper latin</p> | ||
<ol style="list-style-type:upper-latin;"> | ||
<li>upper latin 1</li> | ||
<li>upper latin 2</li> | ||
</ol> | ||
</section> |