Module: Saxon::ItemType::LexicalStringConversion::PatternFragments

Defined in:
lib/saxon/item_type/lexical_string_conversion.rb

Overview

 Pattern fragments that can be combined to help create the lexical space  patterns in Patterns

Constant Summary collapse

TIME_DURATION =

The time part of the XSD Duration format allows T0H1M1S, T1H1M, T1M1S, T1H1S, T1H, T1M, T1S

/(?:T
  (?:
    [0-9]+[HM]|
    [0-9]+(?:\.[0-9]+)?S|
    [0-9]+H[0-9]+M|
    [0-9]+H[0-9]+(?:\.[0-9]+)?S|
    [0-9]+M[0-9]+(?:\.[0-9]+)?S|
    [0-9]+H[0-9]+M[0-9]+(?:\.[0-9]+)?S
  )
)?/x
DATE =

XSD Date

/-?[0-9]{4}-[0-9]{2}-[0-9]{2}/
TIME =

XSD DateTime Time

/[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?/
TIME_ZONE =

XSD DateTime Timezone

/(?:[\-+][0-9]{2}:[0-9]{2}|Z)?/
NCNAME_START_CHAR =

Valid first characers in an NCName

'[A-Z]|_|[a-z]|[\u{C0}-\u{D6}]|[\u{D8}-\u{F6}]|[\u{F8}-\u{2FF}]|[\u{370}-\u{37D}]|[\u{37F}-\u{1FFF}]|[\u{200C}-\u{200D}]|[\u{2070}-\u{218F}]|[\u{2C00}-\u{2FEF}]|[\u{3001}-\u{D7FF}]|[\u{F900}-\u{FDCF}]|[\u{FDF0}-\u{FFFD}]|[\u{10000}-\u{EFFFF}]'
NAME_START_CHAR =

Valid first characters in an XML Name

":|" + NCNAME_START_CHAR
NCNAME_CHAR =

Valid characters within an NCName

NCNAME_START_CHAR + '|-|\.|[0-9]|\u{B7}|[\u{0300}-\u{036F}]|[\u{203F}-\u{2040}]'
NAME_CHAR =

Valid characters within an XML Name

":|" + NCNAME_CHAR