diff --git a/README.md b/README.md index a2df685..8fca1a1 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,11 @@ Einsatz xmlns:pa="http://www.pagina-online.de/xlib" exclude-result-prefixes="pa" version="2.0"> - + - + ... - + ``` @@ -55,3 +55,5 @@ Funktionen * **pa:int-to-letter** * Wandelt eine Integer-Zahl in eine Alphabet-Sequenz um * Beispiel: `1` > `a`, `27` > `aa`, `28` > `ab`, etc... +* **pa:capitalize-first** + * Wandelt den ersten Buchstaben des Input-Strings in einen Großbuchstaben um diff --git a/doc/xlib.indexList.html b/doc/xlib.indexList.html index 30c45b3..c648146 100644 --- a/doc/xlib.indexList.html +++ b/doc/xlib.indexList.html @@ -323,6 +323,7 @@

Table of Contents

+ @@ -367,6 +368,7 @@

Table of Contents

+ @@ -408,6 +410,7 @@

Table of Contents

+ @@ -451,6 +454,7 @@

Table of Contents

+ diff --git a/doc/xlib0.html b/doc/xlib0.html index da49117..3b94e36 100644 --- a/doc/xlib0.html +++ b/doc/xlib0.html @@ -17,7 +17,8 @@ 'prs_F_decimal-to-hexS_xlib.xsl', 'prs_F_decimal-to-hex-HELPERS_xlib.xsl', 'prs_F_is-elementS_xlib.xsl', - 'prs_F_int-to-letterS_xlib.xsl'); + 'prs_F_int-to-letterS_xlib.xsl', + 'prs_F_capitalize-firstS_xlib.xsl'); var usedByBoxes= new Array('uB_F_create_uriS_xlib.xsl', @@ -36,7 +37,8 @@ 'dS_F_decimal-to-hexS_xlib.xsl', 'dS_F_decimal-to-hex-HELPERS_xlib.xsl', 'dS_F_is-elementS_xlib.xsl', - 'dS_F_int-to-letterS_xlib.xsl'); + 'dS_F_int-to-letterS_xlib.xsl', + 'dS_F_capitalize-firstS_xlib.xsl'); var sourceBoxes= new Array('src_F_read_files_from_source_folderS_xlib.xsl', 'src_F_merge_files_from_source_folderS_xlib.xsl', @@ -48,7 +50,8 @@ 'src_F_decimal-to-hexS_xlib.xsl', 'src_F_decimal-to-hex-HELPERS_xlib.xsl', 'src_F_is-elementS_xlib.xsl', - 'src_F_int-to-letterS_xlib.xsl'); + 'src_F_int-to-letterS_xlib.xsl', + 'src_F_capitalize-firstS_xlib.xsl'); @@ -414,10 +417,10 @@

Description

Projekt: pagina - Entwicklung - Projektübergreifend

-

Version: 0.8 +

Version: 0.9

-

Datum: 2016-12-02 +

Datum: 2018-09-07

Autoren:

@@ -434,7 +437,7 @@

Description

-

Copyright: 2011-2016 pagina GmbH, Tübingen +

Copyright: 2011-2018 pagina GmbH, Tübingen

=======================================================================================

@@ -446,17 +449,17 @@

Description

-
-
-

Description

 ============================================================================================================================================ 
@@ -1915,6 +1914,112 @@

Description

 ======================================================
       </xsl:choose>
     </xsl:otherwise>
   </xsl:choose>
+</xsl:function>
+ + + + + + + + + + + + + + + +
Function + pa:capitalize-first (arg)
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+
Documentation
+
+
+
+
+

Description

+ +

Author: Tobias Fischer +

+ +

Wandelt den ersten Buchstaben des Input-Strings in einen Großbuchstaben um

+ + + +

Parameters

+ + + +
argInput-String
+
+
+
+

Description

 ============================================================================================================================================ 
+
+
Namespacehttp://www.pagina-online.de/xlib
Typexs:string?
+
Parameters
+
+
+
+ + + + + + + + + + + + + +
QNameNamespaceType
argNo namespacexs:string?
+
+
Import precedence0
+
Source
+
+
+
+ + +
<xsl:function name="pa:capitalize-first" as="xs:string?">
+  <xsl:param name="arg" as="xs:string?"/>
+  <xsl:sequence select="concat(upper-case(substring($arg,1,1)), substring($arg,2))"/>
 </xsl:function>
diff --git a/test/xslt-unit-tests.xspec b/test/xslt-unit-tests.xspec index 04eb7f3..6ed468f 100644 --- a/test/xslt-unit-tests.xspec +++ b/test/xslt-unit-tests.xspec @@ -145,4 +145,26 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/xlib.xsl b/xlib.xsl index c288a95..3d4b0a5 100644 --- a/xlib.xsl +++ b/xlib.xsl @@ -12,8 +12,8 @@ ======================================================================================= Titel: pagina xLib Projekt: pagina - Entwicklung - Projektübergreifend - Version: 0.8 - Datum: 2016-12-02 + Version: 0.9 + Datum: 2018-09-07 Autoren: Björn Dünckel @@ -21,7 +21,7 @@ Tobias Fischer Rupert Jung - Copyright: 2011-2016 pagina GmbH, Tübingen + Copyright: 2011-2018 pagina GmbH, Tübingen ======================================================================================= Die pagina XLib sammelt XSLT-Funktionen für den Projektübergreifenden Einsatz. Andere Quellen für XSLT Funktionen: @@ -310,5 +310,21 @@ + + + + + + + + Author: Tobias Fischer + Wandelt den ersten Buchstaben des Input-Strings in einen Großbuchstaben um + + Input-String + + + + + \ No newline at end of file