This XQuery 3.0 library module provides functions to output data in CSV format. CSV (Comma-Separated Values) is a common format for tabular data.
- Date: 2016-06-14
- Version: 1.0-0
- See Also: Comma-separated values (Wikipedia)
- Description: Outputs a value in quotes and escapes double quotes.
- Since: version 1.0-0
- Parameters:
$value
: The string to output
- Return Value: Value to use in .csv format
- Description: Overloaded proxy function for
fn:string-join
, joins values in a list with a specified separator. - Since: version 1.0-0
- Parameters:
$values
: The values to output
- Return Value: Values in joined list format
- Description: Proxy function for
fn:string-join
, joins values in a list with a specified separator. - Since: version 1.0-0
- Parameters:
$values
: The values to output$separator
: The list value separator
- Return Value: Values in joined list format
- Description: Outputs values as strings.
- Since: version 1.0-0
- Parameters:
$values
: The values to output
- Return Value: Values as strings
This module also includes an XSLT stylesheet for CSV conversion. It includes similar functions for processing data within XSLT.
For more details on usage and implementation, refer to the provided XQuery and XSLT code.