Skip to content

Commit 6c94aa2

Browse files
authored
Update Fix-User-Guide.md
1 parent dc90b88 commit 6c94aa2

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/fix/Fix-User-Guide.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,15 @@ add_field("rights","$[rights]")
210210
`$[rights]` in this case is a compile-time variable which is evaluated on
211211
creation of the respective Fix object.
212212

213-
The `<vars>` section in the Metamorph definition can be used to set defaults:
213+
With the fix functions `put_var` and `put_vars` you can set defaults:
214214

215-
```xml
216-
<vars>
217-
<var name="rights" value="CC0" />
218-
</vars>
215+
```perl
216+
put_var("rights","CC0)
217+
218+
put_vars(
219+
"another_rights": "CC-BY",
220+
"additional_rights": "CC-BY-SA"
221+
)
219222
```
220223

221224
For Java implementations: Compile-time variables are passed to Fix as a constructor parameter.

0 commit comments

Comments
 (0)