Warning: file_get_contents(documentation/articles/samplesminiappcmdline.c.html): failed to open stream: No such file or directory in /home/norejdls/sites/ns-xml/www/lib/ns-php/ns/ui/tab.5.php on line 90

Warning: file_get_contents(documentation/articles/samplesminiappcmdline.c.html): failed to open stream: No such file or directory in /home/norejdls/sites/ns-xml/www/lib/ns-php/ns/ui/tab.5.php on line 90

Warning: Cannot modify header information - headers already sent by (output started at /home/norejdls/sites/ns-xml/www/lib/ns-php/ns/ui/tab.5.php:90) in /home/norejdls/sites/ns-xml/www/index.php on line 124
ns-xml project home ~ XSLT documentation
  / languages / base.html

Table of content

Parameters

Templates


Details

Parameters

Templates


Attempt to transform a name to fit common identifier name restriction (no spaces, etc)
  1. name
    Identifier name to transform
code.comment(marker, beginMarker="$marker", endMarker="$marker", content=".")

Prepend all lines with a comment marker
  1. marker
    Comment marker for all lines (except first and last)
  2. beginMarker
    Comment marker for the first line
    Default value: $marker
  3. endMarker
    Comment marker for the last line
    Default value: $marker
  4. content
    Comment text
    Default value: .
code.block(content, indentChar="$code.indentChar", endl, addInitialEndl="true()", addFinalEndl="true()")

Indent a block of text, prepending any line with the code.indentChar A new line is also added at beginning and end of block
  1. content
  2. indentChar
    Default value: $code.indentChar
  3. endl
  4. addInitialEndl
    Default value: true()
  5. addFinalEndl
    Default value: true()

Transform a identifier name from a naming style to another
  1. identifier
    Identifier to transform
  2. from
    Current naming style of the identifier. Possible values: 'auto' (recommended), 'CamelCase', 'camelCase', 'underscore', 'hyphen', 'mixed'
    Default value: 'auto'
  3. to
    Targeted naming style. Possible values: 'CamelCase', 'camelCase', 'underscore', 'hyphen', 'none'
    Default value: 'camelCase'
  4. transitionalChar
    A string that will never appear in an identifier string
    Default value: ' '

Auto-detect identifier naming convention
  1. identifier

Transform all uppercase letter to lowercase prefixed with the given characted
  1. identifier
    Identifier to transform
  2. prefix
    Prefix to add before any uppercase letter
  3. index
    Internal use
    Default value: 1