FIX Trading Community

 

 Remember me

Register  |   Lost password?

FAST Protocol

Discussions > FAST Protocol > templateRef & dictionaries

templateRef & dictionaries

Complete message thread from old site

Sergey Mikhailik
21 September 2006 2:54pm

Hi,
Could you please clarify following question:
Does "templateRef" XML element acts like MACRO and just insert text of the referenced template into the original template?

In XML it looks like this:

Does fields Target, Sender and MDReqID will use same dictionary? Or Target and Sender fields will use seperate dictionary than MDReqID field?

Thank you.

David Rosenborg
21 September 2006 4:24pm

Hi Sergey -

The Target and Sender fields will use a separate dictionary from the MDReqID field.

The "current template" changes as you follow a template reference. This is described in the second paragraph of section 6.4 in the specification: "A static reference specifies that processing should continue with the referred template as the current template."

BTW, the name of the attribute is just dictionary as in dictionary="template". Another tip: it is possible to inherit the dictionary attribute from an ancestor element as in:

Best regards,
David

> Hi, Could you please clarify following question: Does "templateRef" XML
> element acts like MACRO and just insert text of the referenced template
> into the original template?
>
> In XML it looks like this:
>
>
>
> Does fields Target, Sender and MDReqID will use same dictionary?
> Or Target and Sender fields will use seperate dictionary than
> MDReqID field?
>
> Thank you.

David Rosenborg
21 September 2006 4:46pm

Oops, I forgot to mention that the messageRef has changed name to typeRef and consequently the corresponding dictionary is now called "type" so your example would become

/David

>
>
>
> Best regards, David
>
>

Sergey Mikhailik
21 September 2006 5:11pm

> Oops, I forgot to mention that the messageRef has changed name to
> typeRef and consequently the corresponding dictionary is now called
> "type" so your example would become

Thank you a lot!.

When new version of the template specification will be available?

David Rosenborg
21 September 2006 5:34pm

I believe a new version will be out shortly, but I have no dates. Until then you can use this one which isn't far off from the upcoming one:

http://www.fixprotocol.org/documents/2811/FAST%20Specification%201.x.05.pdf

/David

> > Oops, I forgot to mention that the messageRef has changed name to
> > typeRef and consequently the corresponding dictionary is now called
> > "type" so your example would become
>
> Thank you a lot!.
>
> When new version of the template specification will be available?