# Elementname: `Mark`

## Description

Sets an invisible mark into the output. This is helpful when you want to know on which page the mark is placed on.

Allowed attributes: append, select

Child elements: (none)

Parent elements: Action

### Attributes

append (optional)

  When yes, append the current page to the previous values of the mark. Useful to get page ranges in an index. (Default is no.)

  yes: | Append the page number to the previous value of the mark.
  no: | Replace the previous value.

select (XPath Expression)

  The name of the mark to be set.

## Example

    <Pageformat width="210mm" height="4cm"/>

    <Record element="data">
      <PlaceObject>
        <Textblock>
          <Paragraph>
            <Value>
              Row
              Row
              Row
              Row
            </Value>
          </Paragraph>
        </Textblock>
        <Textblock>
          <Action>
            <Mark select="'textstart'"/>
          </Action>
          <Paragraph>
            <Value>
              Row
              Row
              Row
            </Value>
          </Paragraph>
        </Textblock>
      </PlaceObject>
      <NewPage/>
      <Message select="sd:pagenumber('textstart')"></Message>
    </Record>

## Info

Marks get saved for subsequent runs.

## See also

Action

# Commands

- A
- Action
- AddSearchpath
- AtPageCreation
- AtPageShipout
- AttachFile
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Circle
- Color
- Column
- Columns
- Compatibility
- Contents
- Copy-of
- DefineColor
- DefineFontalias
- DefineFontfamily
- DefineTextformat
- Element
- Fontface
- ForAll
- Frame
- Grid
- Group
- Groupcontents
- HSpace
- Hyphenation
- I
- Image
- Include
- Initial
- InsertPages
- Italic
- Layout
- Li
- LoadDataset
- LoadFontfile
- Loop
- Makeindex
- Margin
- Mark
- Message
- NewPage
- NextFrame
- NextRow
- NoBreak
- Ol
- Options
- Otherwise
- Output
- Overlay
- PDFOptions
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- Position
- PositioningArea
- PositioningFrame
- ProcessNode
- Record
- Regular
- Rule
- SaveDataset
- SavePages
- SetGrid
- SetVariable
- SortSequence
- Span
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Trace
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

Version: 3.2.0 | Start page | Command reference | Other language: German