Skip to content
Permalink
Browse files

Merge pull request #1 from digipost/lenke

Nytt element `<lenke>` for digital post
  • Loading branch information...
sindrebn committed Sep 20, 2017
2 parents efbdf7f + 19194dd commit 3ff902ee53f25eaaaeeb438adcd3e9a6e0da2d78
Showing with 49 additions and 0 deletions.
  1. +5 −0 eksempler/sdpMelding-digital.xml
  2. +44 −0 xsd/sdp-melding.xsd
@@ -87,6 +87,11 @@
</repetisjoner>
</smsVarsel>
</varsler>
<lenke>
<url>https://www.avsender.no/svar</url>
<knappTekst lang="no">Svar på den viktige meldingen</knappTekst>
<frist>2017-10-01T12:00:00+02:00</frist>
</lenke>
</digitalPostInfo>

<dokumentpakkefingeravtrykk>
@@ -109,6 +109,7 @@
</xsd:annotation>
</xsd:element>
<xsd:element name="varsler" type="Varsler" minOccurs="0" maxOccurs="1"/>
<xsd:element name="lenke" type="Lenke" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>

@@ -199,6 +200,49 @@
</xsd:restriction>
</xsd:simpleType>

<xsd:complexType name="Lenke">
<xsd:sequence>
<xsd:element name="url" type="HttpLenke" minOccurs="1" maxOccurs="1"/>
<xsd:element name="beskrivelse" type="LenkeBeskrivelseTekst" minOccurs="0" maxOccurs="1"/>
<xsd:element name="knappTekst" type="LenkeKnappTekst" minOccurs="0" maxOccurs="1"/>
<xsd:element name="frist" type="xsd:dateTime" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>

<xsd:simpleType name="HttpLenke">
<xsd:restriction base="xsd:anyURI">
<xsd:pattern value="https?://.+" />
</xsd:restriction>
</xsd:simpleType>

<xsd:complexType name="LenkeBeskrivelseTekst">
<xsd:simpleContent>
<xsd:extension base="LenkeBeskrivelseTekstString">
<xsd:attribute name="lang" type="Spraakkode" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:simpleType name="LenkeBeskrivelseTekstString">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="70"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:complexType name="LenkeKnappTekst">
<xsd:simpleContent>
<xsd:extension base="LenkeKnappTekstString">
<xsd:attribute name="lang" type="Spraakkode" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:simpleType name="LenkeKnappTekstString">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>

<!-- typer nedenfor er for fysisk post -->

<xsd:complexType name="FysiskPostInfo">

0 comments on commit 3ff902e

Please sign in to comment.
You can’t perform that action at this time.