- Utility functions. + This file provides several utility functions and templates.
- Variant of gen-path with an additional origin
- parameter. This parameter can have three values:
- If set to true the file is loaded from the
- foundry directory.
-
'')concat($theme-prefix, '/', $path.
- conf/global.xml) is set to
- master the result is the same as for the empty string. If the
- the theme mode is set to child the generated path points to
- the parent/master theme. More exactly the result is the concatenation of the
- context-prefix environment variable, the string /themes/, the
- name of the master theme (set in conf/global.xml,
- usally foundry), a slash the the path provided as first parameter.
- Or in XPath syntax:
- concat($content-prefix, '/themes/', $master-theme, '/', $path.).
- master the generated path is the concatenation of
- the theme prefix, the string /foundry/ and the path provided as
- first parameter (XPath: concat($theme-prefix, '/foundry/', $path).
- If the theme mode is child the generated path
- is the concatenation of the context prefix, the string
- /themes/foundry/foundry/ and the path provided as first parameter
- (XPath: concat($context-prefix, '/themes/foundry/foundry/', $path)).
-
+ Variant of gen-path with an additional origin
+ parameter. This parameter can have three values:
+ If set to true the file is loaded from the
+ foundry directory.
+
'')concat($theme-prefix, '/', $path.
+ conf/global.xml) is set to
+ master the result is the same as for the empty string. If the
+ the theme mode is set to child the generated path points to
+ the parent/master theme. More exactly the result is the concatenation of the
+ context-prefix environment variable, the string /themes/, the
+ name of the master theme (set in conf/global.xml,
+ usally foundry), a slash the the path provided as first parameter.
+ Or in XPath syntax:
+ concat($content-prefix, '/themes/', $master-theme, '/', $path.).
+ master the generated path is the concatenation of
+ the theme prefix, the string /foundry/ and the path provided as
+ first parameter (XPath: concat($theme-prefix, '/foundry/', $path).
+ If the theme mode is child the generated path
+ is the concatenation of the context prefix, the string
+ /themes/foundry/foundry/ and the path provided as first parameter
+ (XPath: concat($context-prefix, '/themes/foundry/foundry/', $path)).
+
- A helper function used by the other message functions like
- foundry:message-warn. Concatenates the message level with the message.
+ A helper template used by the other message templates like
+ foundry:message-warn. Outputs a message (for example in the
+ application servers log using xsl:message.
+ Concatenates the message level with the message.
- This function should not be used directly. Use the other message functions instead. + This template should not be used directly. Use the other message templates instead.
- Helper function to generate an info message. This function be used together with
- <xsl:message> to output a message in the CCM log. Example:
+ Helper function to generate an info message. This template generates a
+ <xsl:message> element which causes the XSL processor to output
+ a message in the application server log. The message will on shown if the log level
+ in the global configuration is set to info or error.
- ...
- <xsl:message>
- <xsl:message select="foundry:message-info('Hello from Foundry')" />
- </xsl:message>
-