<xsl:stylesheet version="1.0"
xmlns:qbo="http://services.quandis.com/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="*">
<DelimitedFile>
<!--Stored Procedure Call (standard format)-->
<StoredProcedureCollection>
<StoredProcedure name="rTestDeliminted">
<ServiceOrderID>
<xsl:text>1773</xsl:text>
</ServiceOrderID>
</StoredProcedure>
</StoredProcedureCollection>
<!--
FileSpec - (optional) Default behavior for all files generated
Deliminter - (optional) Defaults to "|"
Prefix - (optional) If specified will set Attachment, AttachmentType = {Prefix}.{TableSequence}.{Extension}
Extension - (optional) Specifies file extension
IncludeHeader - (optional) Includes header row - default false
Wrapper - (optional) wraps field values (default is blank)
PublicIndexID - (optional) - Public PGP IndexID - if both supplied all files will be encrypted using these keys
PrivateIndexID - (optional) - Private PGP IndexID
-->
<FileSpec Deliminter="|" Prefix="Test" Extension="txt" IncludeHeader="true" Wrapper="'" PublicIndexID="4" PrivateIndexID="15">
<!--
File - (optional) Overrides global behavior. Sequence of File must match sequence of dataset. Eg. If SP returns 3 tables, first table returned will match first FileNode
TableName - (optional) If specified will set Attachment, AttachmentType = {Prefix}.{Extension}
DefaultValue - (optional) if provided, will set value of field if field value is null
FormatType - (optional) Custom formatting. Current enumerations are: DateTime, String
FormatPattern - (optional) Pattern used by format type
Note if you supply no Field nodes within a FileNode the Query columns will be used
PublicIndexID - (optional) - Public PGP IndexID. Overrides global behavior.
PrivateIndexID - (optional) - Private PGP IndexID
-->
<File Deliminter="," TableName="Person" Extension="txt" IncludeHeader="false" >
<Field name="PersonIdentifier" Mapping="PersonID"/>
<Field name="SubscriberID" Mapping="SubscriberID" DefaultValue="SubscriberID is missing"/>
<Field name="Descriptor" Mapping="Person" DefaultValue=""/>
<Field name="Last Login Date" Mapping="LastLogin" FormatType="datetime" FormatPattern="yyyyMMddhhss"/>
</File>
<File Deliminter="," TableName="SystemFunction" Extension="txt" IncludeHeader="true">
<Field name="Function" Mapping="SystemFunction"/>
<Field name="SystemFunctionID" Mapping="SystemFunctionID"/>
<Field name="Comment" DefaultValue="Force Comment"/>
</File>
</FileSpec>
</DelimitedFile>
</xsl:template>
</xsl:stylesheet>