---
title: "s.syntax.group-sequence"
description: "## Syntax **s.syntax.group-sequence** ## Purpose The s.syntax.group-sequence annotation is used to tag a span element as being a specific sequence of related syntax components within a syntax diagram. These components act as a single unit. A group sequence is used…"
url: "https://www.stilo.com/docs/migrate/task/s-syntax-group-sequence/"
updated: "2023-12-11"
category: Annotations / Task
tags:
  - Annotations
---

# s.syntax.group-sequence

## Syntax

**s.syntax.group-sequence**

## Purpose

The s.syntax.group-sequence annotation is used to tag a span element as being a specific sequence of related syntax components within a syntax diagram. These components act as a single unit. A group sequence is used to present a behaviour or process within the logic of the syntax diagram.

 

This annotation also automatically creates a <syntaxdiagram> tag to contain the <groupseq> tags. This annotation can be applied at the span or paragraph scopes.

 

See s.syntax.group-composite for more information.

## Example

The following is an example of a time when you might want to use the annotation

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-s.syntax.group-sequence0.png)

 

The following is an example of a rule that will apply the annotation

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-s.syntax.group-sequence1.png)

The following is the DITA XML output for the rule:

<syntaxdiagram>

<groupseq>

<title>>Adding </title>

<kwd>2</kwd>

<oper>*</oper>

<sep>(</sep>

<kwd>3</kwd>

<oper>+</oper>

<var>user_input</var>

<sep>)</sep>

<delim>=</delim>

<kwd>system_output</kwd>

</groupseq>

</syntaxdiagram></p>

 
