[DFDL-WG] Can I concatenate a variable?

Garriss Jr., James P. jgarriss at mitre.org
Mon Jun 24 15:09:10 EDT 2013


Suppose I define a variable like this:

<dfdl:defineVariable name="boundary" defaultValue="some_boundary" type="xsd:string"/>

Can I later concatenate it with other values?

For example, can I concatenate it as part of a pattern?

<xsd:element name="Preamble" type="xsd:string" dfdl:lengthKind="pattern" dfdl:lengthPattern="(.+?)(?=--{$some_boundary})"/>

Can I concatenate it as part of a separator?

<xsd:sequence dfdl:separator="--{$some_boundary}" dfdl:separatorSuppressionPolicy="anyEmpty"  dfdl:terminator="--%CR;%LF;">

TIA!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20130624/7d3b2582/attachment-0001.html>


More information about the dfdl-wg mailing list