<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi,<br></div><div><br></div><div>default value can be easily set using object template mapping for your extension attribute with weak strength.<br></div><div><br></div><div>e.g.<br></div><div><br></div><div><mapping><br></div><div>  <strength>weak</strength><br></div><div>  <expression><br></div><div>    <value>xxx</value><br></div><div>  </expression><br></div><div>  <target><br></div><div>    <path>$user/extension/myattr1</path><br></div><div>  </target><br></div><div></mapping><br></div><div><br></div><div>will set a default value for your extension attribute "myattr1" to "xxx".<br></div><div><br></div><div>See <a href="https://wiki.evolveum.com/display/midPoint/Object+Template">https://wiki.evolveum.com/display/midPoint/Object+Template</a> to start with object templates, and samples for object templates...<br></div><div><br></div><div>Best regards,<br></div><div>Ivan<br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"TIPA Sylvaire-Kevin" <sylvaire-kevin.tipa@mythalesgroup.com><br><b>To: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><br><b>Sent: </b>Wednesday, February 28, 2018 10:46:52 AM<br><b>Subject: </b>Re: [midPoint]        ?==?utf-8?q?  XSD schema default attribut<br><div><br></div>Ok, thanks for the confirmation.<br><div><br></div>I think that default attribut will be a good feature :). Currently I need to add mapping on my extension for set a default value..<br><div><br></div><br>--<p>Cordialement.</p><br>-------- Message original --------<br>Sujet: Re: [midPoint] XSD schema default attribut<br>Date: Mercredi 28 Février 2018 08:50 CET<br>De: Pavol Mederly <mederly@evolveum.com><br>Répondre à: midPoint General Discussion <midpoint@lists.evolveum.com><br>Pour: midpoint@lists.evolveum.com<br>Références: <52bc-5a95b380-5-76db3e00@114523021><br><div><br></div><br> <blockquote cite="62069373-c676-b9e1-5be8-f18382c27138@evolveum.com"> </blockquote><p>Hello,</p><p>it's not a bug; it is just not supported.</p><p>MidPoint does not claim to use all features of XSD; it uses only a selected subset of them.</p><pre class="moz-signature">Pavol Mederly
Software developer
evolveum.com
</pre><div class="moz-cite-prefix">On 27.02.2018 20:38, TIPA Sylvaire-Kevin wrote:</div><blockquote cite="mid:52bc-5a95b380-5-76db3e00@114523021">Hello,<br><div><br></div>It seems that the attribut "default" do nothing in xsd schema extension... I find nothing about that in Jira.<br><div><br></div>My xsd :<br><xsd:element name="accessTitle" type="xsd:string" default="Ici les acces iunfomation" ><br><div><br></div>I also try with fixed attribut, but nothing ... Bug ?<br><div><br></div>--<p>Cordialement.</p> <fieldset class="mimeAttachmentHeader"> </fieldset> <pre>_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre></blockquote><br> 
<br>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br>http://lists.evolveum.com/mailman/listinfo/midpoint<br></blockquote><div><br><div><br></div></div><div><br></div><div>-- <br></div><div><span name="x"></span>Ivan Noris<br>Senior Identity Engineer<br>evolveum.com<span name="x"></span><br></div></div></body></html>