Net-Domain-TMCH

 view release on metacpan or  search on metacpan

examples/mark-templ.pl  view on Meta::CPAN

# Describing complex mark:mark
#     {urn:ietf:params:xml:ns:mark-1.0}mark
#
# Produced by XML::Compile::Translate::Template version undef
#          on Wed Dec 30 16:32:17 2015
#
# BE WARNED: in most cases, the example below cannot be used without
# interpretation.  The comments will guide you.
#
# xmlns:ds        http://www.w3.org/2000/09/xmldsig#
# xmlns:mark      urn:ietf:params:xml:ns:mark-1.0
# xmlns:smd       urn:ietf:params:xml:ns:signedMark-1.0
# xmlns:xsd       http://www.w3.org/2001/XMLSchema

# is a mark:markType
{ # sequence of trademark, treatyOrStatute, court

  # is a mark:trademarkType
  # occurs any number of times
  trademark =>
  [ { # sequence of id, markName, holder, contact, jurisdiction,
      #   class, label, goodsAndServices, apId, apDate, regNum,
      #   regDate, exDate

      # is a xsd:token
      # Pattern: \d+-\d+
      id => "token",

      # is a xsd:token
      markName => "token",

      # is a mark:holderType
      # occurs 1 <= # <= unbounded times
      holder =>
      [ { # is a xsd:token
          # becomes an attribute
          # Enum: assignee licensee owner
          entitlement => "owner",

          # sequence of name, org, addr, voice, fax, email

          # is a xsd:token
          # is optional
          name => "token",

          # is a xsd:token
          # is optional
          org => "token",

          # is a mark:addrType
          addr =>
          { # sequence of street, city, sp, pc, cc

            # is a xsd:token
            # occurs 1 <= # <= 3 times
            street => [ "token", ],

            # is a xsd:token
            city => "token",

            # is a xsd:token
            # is optional
            sp => "token",

            # is a xsd:token
            # is optional
            # length <= 16
            pc => "token",

            # is a xsd:token



( run in 0.928 second using v1.01-cache-2.11-cpan-71847e10f99 )