From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/devmanual:master commit in: xsl/
Date: Thu, 19 Dec 2019 08:55:39 +0000 (UTC) [thread overview]
Message-ID: <1576745599.4d741415a1a0c237a2cd9ad552c4371b5c6bf532.ulm@gentoo> (raw)
commit: 4d741415a1a0c237a2cd9ad552c4371b5c6bf532
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 19 08:53:19 2019 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Dec 19 08:53:19 2019 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=4d741415
str.tokenize.function.xsl: Fix line endings from CRLF to LF.
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
xsl/str.tokenize.function.xsl | 176 +++++++++++++++++++++---------------------
1 file changed, 88 insertions(+), 88 deletions(-)
diff --git a/xsl/str.tokenize.function.xsl b/xsl/str.tokenize.function.xsl
index 2be90fe..e588761 100644
--- a/xsl/str.tokenize.function.xsl
+++ b/xsl/str.tokenize.function.xsl
@@ -1,88 +1,88 @@
-<?xml version="1.0"?>
-<!-- This is the EXSLT implementation of str:tokenize by Jeni Tennison,
- I've modified it to keep the tokens since we need them - plasmaroo -->
-
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:func="http://exslt.org/functions"
- xmlns:exsl="http://exslt.org/common"
- xmlns:str="http://exslt.org/strings"
- extension-element-prefixes="str func exsl xsl"
- exclude-result-prefixes="str func exsl xsl"
- xmlns="http://www.w3.org/1999/xhtml">
-
-<func:function name="str:tokenize_plasmaroo">
- <xsl:param name="string" select="''" />
- <xsl:param name="delimiters" select="' 	
'" />
- <xsl:choose>
- <xsl:when test="not($string)">
- <func:result select="/.." />
- </xsl:when>
- <xsl:when test="not(function-available('exsl:node-set'))">
- <xsl:message terminate="yes">
- ERROR: EXSLT - Functions implementation of str:tokenize relies on exsl:node-set().
- </xsl:message>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable name="tokens">
- <xsl:choose>
- <xsl:when test="not($delimiters)">
- <xsl:call-template name="str:_tokenize-characters">
- <xsl:with-param name="string" select="$string" />
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="str:_tokenize-delimiters">
- <xsl:with-param name="string" select="$string" />
- <xsl:with-param name="delimiters" select="$delimiters" />
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <func:result select="exsl:node-set($tokens)/*" />
- </xsl:otherwise>
- </xsl:choose>
-</func:function>
-
-<xsl:template name="str:_tokenize-characters">
- <xsl:param name="string" />
- <xsl:if test="$string">
- <token><xsl:value-of select="substring($string, 1, 1)" /></token>
- <xsl:call-template name="str:_tokenize-characters">
- <xsl:with-param name="string" select="substring($string, 2)" />
- </xsl:call-template>
- </xsl:if>
-</xsl:template>
-
-<xsl:template name="str:_tokenize-delimiters">
- <xsl:param name="string"/>
- <xsl:param name="delimiters"/>
- <xsl:variable name="delimiter" select="substring($delimiters, 1, 1)" />
- <xsl:choose>
- <xsl:when test="not($delimiter)">
- <token><xsl:value-of select="$string" /></token>
- </xsl:when>
- <xsl:when test="contains($string, $delimiter)">
- <xsl:if test="not(starts-with($string, $delimiter))">
- <xsl:call-template name="str:_tokenize-delimiters">
- <xsl:with-param name="string" select="substring-before($string, $delimiter)" />
- <xsl:with-param name="delimiters" select="substring($delimiters, 2)" />
- </xsl:call-template>
- <xsl:value-of select="$delimiter"/>
- </xsl:if>
- <delimiter><xsl:attribute name="delimiter"><xsl:value-of select="$delimiter"/></xsl:attribute><xsl:value-of select="$delimiter"/></delimiter>
- <xsl:call-template name="str:_tokenize-delimiters">
- <xsl:with-param name="string" select="substring-after($string, $delimiter)"/>
- <xsl:with-param name="delimiters" select="$delimiters"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="str:_tokenize-delimiters">
- <xsl:with-param name="string" select="$string" />
- <xsl:with-param name="delimiters" select="substring($delimiters, 2)" />
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
+<?xml version="1.0"?>
+<!-- This is the EXSLT implementation of str:tokenize by Jeni Tennison,
+ I've modified it to keep the tokens since we need them - plasmaroo -->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:func="http://exslt.org/functions"
+ xmlns:exsl="http://exslt.org/common"
+ xmlns:str="http://exslt.org/strings"
+ extension-element-prefixes="str func exsl xsl"
+ exclude-result-prefixes="str func exsl xsl"
+ xmlns="http://www.w3.org/1999/xhtml">
+
+<func:function name="str:tokenize_plasmaroo">
+ <xsl:param name="string" select="''" />
+ <xsl:param name="delimiters" select="' 	
'" />
+ <xsl:choose>
+ <xsl:when test="not($string)">
+ <func:result select="/.." />
+ </xsl:when>
+ <xsl:when test="not(function-available('exsl:node-set'))">
+ <xsl:message terminate="yes">
+ ERROR: EXSLT - Functions implementation of str:tokenize relies on exsl:node-set().
+ </xsl:message>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="tokens">
+ <xsl:choose>
+ <xsl:when test="not($delimiters)">
+ <xsl:call-template name="str:_tokenize-characters">
+ <xsl:with-param name="string" select="$string" />
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="str:_tokenize-delimiters">
+ <xsl:with-param name="string" select="$string" />
+ <xsl:with-param name="delimiters" select="$delimiters" />
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <func:result select="exsl:node-set($tokens)/*" />
+ </xsl:otherwise>
+ </xsl:choose>
+</func:function>
+
+<xsl:template name="str:_tokenize-characters">
+ <xsl:param name="string" />
+ <xsl:if test="$string">
+ <token><xsl:value-of select="substring($string, 1, 1)" /></token>
+ <xsl:call-template name="str:_tokenize-characters">
+ <xsl:with-param name="string" select="substring($string, 2)" />
+ </xsl:call-template>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template name="str:_tokenize-delimiters">
+ <xsl:param name="string"/>
+ <xsl:param name="delimiters"/>
+ <xsl:variable name="delimiter" select="substring($delimiters, 1, 1)" />
+ <xsl:choose>
+ <xsl:when test="not($delimiter)">
+ <token><xsl:value-of select="$string" /></token>
+ </xsl:when>
+ <xsl:when test="contains($string, $delimiter)">
+ <xsl:if test="not(starts-with($string, $delimiter))">
+ <xsl:call-template name="str:_tokenize-delimiters">
+ <xsl:with-param name="string" select="substring-before($string, $delimiter)" />
+ <xsl:with-param name="delimiters" select="substring($delimiters, 2)" />
+ </xsl:call-template>
+ <xsl:value-of select="$delimiter"/>
+ </xsl:if>
+ <delimiter><xsl:attribute name="delimiter"><xsl:value-of select="$delimiter"/></xsl:attribute><xsl:value-of select="$delimiter"/></delimiter>
+ <xsl:call-template name="str:_tokenize-delimiters">
+ <xsl:with-param name="string" select="substring-after($string, $delimiter)"/>
+ <xsl:with-param name="delimiters" select="$delimiters"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="str:_tokenize-delimiters">
+ <xsl:with-param name="string" select="$string" />
+ <xsl:with-param name="delimiters" select="substring($delimiters, 2)" />
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+</xsl:stylesheet>
next reply other threads:[~2019-12-19 8:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-19 8:55 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-22 18:19 [gentoo-commits] proj/devmanual:master commit in: xsl/ Ulrich Müller
2023-11-06 18:11 Ulrich Müller
2023-11-06 18:11 Ulrich Müller
2021-09-07 18:01 Ulrich Müller
2020-01-15 21:29 Ulrich Müller
2019-11-26 3:05 Göktürk Yüksek
2019-11-26 3:05 Göktürk Yüksek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1576745599.4d741415a1a0c237a2cd9ad552c4371b5c6bf532.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox