# templateRef & dictionaries

**URL:** <https://forum.fixtrading.org/t/templateref-dictionaries/890>\
**Category:** General Q&A\
**Tags:** xid\_169621, imported, fast-protocol\
**Created:** [September 21, 2006, 2:54pm UTC](https://forum.fixtrading.org/t/templateref-dictionaries/890 "2006-09-21T14:54:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergeymikhailik\_x](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sergeymikhailik\_x](https://forum.fixtrading.org/u/sergeymikhailik_x)\
**Post date:** [September 21, 2006, 2:54pm UTC](https://forum.fixtrading.org/t/templateref-dictionaries/890/1 "2006-09-21T14:54:18Z")

</div>

Imported from previous forum

---

<div class="post-metadata">

**Author:** ![sergeymikhailik\_x](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sergeymikhailik\_x](https://forum.fixtrading.org/u/sergeymikhailik_x)\
**Post date:** [September 21, 2006, 2:54pm UTC](https://forum.fixtrading.org/t/templateref-dictionaries/890/2 "2006-09-21T14:54:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![davidrosenborg30\_x](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@davidrosenborg30\_x](https://forum.fixtrading.org/u/davidrosenborg30_x)\
**Post date:** [September 21, 2006, 4:24pm UTC](https://forum.fixtrading.org/t/templateref-dictionaries/890/3 "2006-09-21T16:24:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![davidrosenborg30\_x](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@davidrosenborg30\_x](https://forum.fixtrading.org/u/davidrosenborg30_x)\
**Post date:** [September 21, 2006, 4:46pm UTC](https://forum.fixtrading.org/t/templateref-dictionaries/890/4 "2006-09-21T16:46:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sergeymikhailik\_x](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sergeymikhailik\_x](https://forum.fixtrading.org/u/sergeymikhailik_x)\
**Post date:** [September 21, 2006, 5:11pm UTC](https://forum.fixtrading.org/t/templateref-dictionaries/890/5 "2006-09-21T17:11:25Z")

</div>

> 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?

---

<div class="post-metadata">

**Author:** ![davidrosenborg30\_x](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@davidrosenborg30\_x](https://forum.fixtrading.org/u/davidrosenborg30_x)\
**Post date:** [September 21, 2006, 5:34pm UTC](https://forum.fixtrading.org/t/templateref-dictionaries/890/6 "2006-09-21T17:34:55Z")

</div>

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](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?
