Commit 85088850 authored by Wendell Piez's avatar Wendell Piez

Further adjustments in adjustments

parent 9bca494a
......@@ -605,7 +605,7 @@
</xsw:prop>
</xsl:template>
<xsl:template mode="set-property" match="w:b[@w:val='0','none']">normal</xsl:template>
<xsl:template mode="set-property" match="w:b[@w:val=('0','none')]">normal</xsl:template>
<xsl:template mode="set-property" match="w:b">bold</xsl:template>
<xsl:template mode="build-properties" as="element(xsw:prop)" match="w:style//w:b[not(@val=('0','none'))]">
......@@ -621,7 +621,7 @@
</xsw:prop>
</xsl:template>
<xsl:template mode="set-property" match="w:i[@w:val='0','none']">normal</xsl:template>
<xsl:template mode="set-property" match="w:i[@w:val=('0','none')]">normal</xsl:template>
<xsl:template mode="set-property" match="w:i">italic</xsl:template>
<!-- will become 'i' -->
......@@ -635,7 +635,7 @@
</xsw:prop>
</xsl:template>
<xsl:template mode="set-property" match="w:u[@w:val='0','none']">none</xsl:template>
<xsl:template mode="set-property" match="w:u[@w:val=('0','none')]">none</xsl:template>
<xsl:template mode="set-property" match="w:u">underline</xsl:template>
<!-- will become 'u' -->
......
......@@ -22,8 +22,7 @@
<xsl:variable name="country-codes">ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bl|bm|bn|bo|bq|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mf|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu</xsl:variable>
<!-- tlds includes three-letter domain names but also anything that indicates
an URL when followed by . (dot) e.g. .mil or .us ... -->
<!-- tlds includes three-letter domain names -->
<xsl:variable name="tlds" as="xs:string" expand-text="true">com|org|net|gov|mil|edu|io|foundation</xsl:variable>
<xsl:variable name="uri-match" as="xs:string" expand-text="true">\.({$country-codes}|{$tlds})</xsl:variable>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment