Name

literalSegment — Literal segment

Synopsis

literalSegment ::= “"” (
Char - (“"” 
newline))* “"”
 |"’” (
Char - (“‘” 
newline))* “‘”
 |""""” (["""] ["""] (
Char - “"”))* “"""”
 |"''’” (["'"] ["'"] (
Char - “‘”))* “‘'’”

May be included in

datatypeName literal, datatypeName param exceptPattern, datatypes, default namespace, external, include, namespace

XML syntax equivalent

None

Description

The literalSegment production describes literal segments as strings enclosed either in single or double quotes or enclosed in three single or three double quotes using a Python-like syntax.

Get RELAX NG now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.