| 1 | <?xml version="1.0" encoding="UTF-8"?>
|
|---|
| 2 | <!--
|
|---|
| 3 | /* LICENCE[[
|
|---|
| 4 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1/CeCILL 2.O
|
|---|
| 5 | *
|
|---|
| 6 | * The contents of this file are subject to the Mozilla Public License Version
|
|---|
| 7 | * 1.1 (the "License"); you may not use this file except in compliance with
|
|---|
| 8 | * the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
|
|---|
| 9 | *
|
|---|
| 10 | * Software distributed under the License is distributed on an "AS IS" basis,
|
|---|
| 11 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|---|
| 12 | * for the specific language governing rights and limitations under the
|
|---|
| 13 | * License.
|
|---|
| 14 | *
|
|---|
| 15 | * The Original Code is utc.fr code.
|
|---|
| 16 | *
|
|---|
| 17 | * The Initial Developer of the Original Code is
|
|---|
| 18 | * sylvain.spinelli@kelis.fr on behalf of UTC
|
|---|
| 19 | *
|
|---|
| 20 | * Portions created by the Initial Developer are Copyright (C) 2006
|
|---|
| 21 | * the Initial Developer. All Rights Reserved.
|
|---|
| 22 | *
|
|---|
| 23 | * Contributor(s):
|
|---|
| 24 | *
|
|---|
| 25 | *
|
|---|
| 26 | * Alternatively, the contents of this file may be used under the terms of
|
|---|
| 27 | * either of the GNU General Public License Version 2 or later (the "GPL"),
|
|---|
| 28 | * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|---|
| 29 | * or the CeCILL Licence Version 2.0 (http://www.cecill.info/licences.en.html),
|
|---|
| 30 | * in which case the provisions of the GPL, the LGPL or the CeCILL are applicable
|
|---|
| 31 | * instead of those above. If you wish to allow use of your version of this file
|
|---|
| 32 | * only under the terms of either the GPL, the LGPL or the CeCILL, and not to allow
|
|---|
| 33 | * others to use your version of this file under the terms of the MPL, indicate
|
|---|
| 34 | * your decision by deleting the provisions above and replace them with the notice
|
|---|
| 35 | * and other provisions required by the GPL, the LGPL or the CeCILL. If you do not
|
|---|
| 36 | * delete the provisions above, a recipient may use your version of this file under
|
|---|
| 37 | * the terms of any one of the MPL, the GPL, the LGPL or the CeCILL.
|
|---|
| 38 | * ]]LICENCE
|
|---|
| 39 | */
|
|---|
| 40 | -->
|
|---|
| 41 | <structure code="sm_textPrim"
|
|---|
| 42 | racine="/sm:textPrim"
|
|---|
| 43 | codecomposant="getIdNode(.)"
|
|---|
| 44 | xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling"
|
|---|
| 45 | xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"
|
|---|
| 46 | xmlns:java="http://xml.apache.org/xslt/java"
|
|---|
| 47 | version="1.0">
|
|---|
| 48 |
|
|---|
| 49 | <!-- @API Code interne unique du modèle dans tout le WSP -->
|
|---|
| 50 | <valeur code="codeModel">
|
|---|
| 51 | <source type="xpath-statique">concat(sm:identification/@targetPrefix, '_', sm:identification/@code)</source>
|
|---|
| 52 | </valeur>
|
|---|
| 53 |
|
|---|
| 54 | <!-- @API Nom usuel du modèle -->
|
|---|
| 55 | <valeur code="nameModel">
|
|---|
| 56 | <source type="xpath-statique">@name</source>
|
|---|
| 57 | </valeur>
|
|---|
| 58 |
|
|---|
| 59 | <!-- @API Ce modèle peut-il constituer un item autonome ? Utilisé par le générateur. -->
|
|---|
| 60 | <valeur code="isStandAloneItem">
|
|---|
| 61 | <source>false</source>
|
|---|
| 62 | </valeur>
|
|---|
| 63 |
|
|---|
| 64 | <!-- @API Ce modèle peut-il être internalisable ? Utilisé par le générateur.
|
|---|
| 65 | (un jour ce sera peut-etre différent du concept d'item public) -->
|
|---|
| 66 | <valeur code="isInternalizable">
|
|---|
| 67 | <source type="xpath-dynamique">resultatAgent('/@@/isInternalizableClass', codeAgent(..))</source>
|
|---|
| 68 | <resultat cache="*"/>
|
|---|
| 69 | </valeur>
|
|---|
| 70 |
|
|---|
| 71 | <!-- @API retourne directement la source de cette Primitive (utilisé par les transformers). -->
|
|---|
| 72 | <sourceNode code="source"/>
|
|---|
| 73 |
|
|---|
| 74 | <!-- ### -->
|
|---|
| 75 | <!-- # Liens vers d'autres modèles (API du générateur) -->
|
|---|
| 76 | <!-- # -->
|
|---|
| 77 |
|
|---|
| 78 | <!-- @API Contient La liste des primitives liées. Utilisé par le générateur. -->
|
|---|
| 79 | <set code="links">
|
|---|
| 80 |
|
|---|
| 81 | <!-- @API -->
|
|---|
| 82 | <structure code="inlineImg" racine="sm:structure//sm:allowedModel" codecomposant="getIdNode(.)">
|
|---|
| 83 | <listenoeuds>
|
|---|
| 84 | <noeud cle="models" type="singleton">
|
|---|
| 85 | <ref type="xpath-statique">concat('@', getIdFromPath(@sc:refUri))</ref>
|
|---|
| 86 | </noeud>
|
|---|
| 87 | </listenoeuds>
|
|---|
| 88 |
|
|---|
| 89 | <!-- @API -->
|
|---|
| 90 | <valeur code="internalized">
|
|---|
| 91 | <source>never</source>
|
|---|
| 92 | </valeur>
|
|---|
| 93 | </structure>
|
|---|
| 94 |
|
|---|
| 95 | <structure code="meta" racine="sm:structure//sm:meta" codecomposant="getIdFromPath(@sc:refUri)">
|
|---|
| 96 | <!-- Ce code composant permet de supprimer les doublons (on ne définit le lien qu'une seule fois vers chaque modèle de meta différent). -->
|
|---|
| 97 | <listenoeuds>
|
|---|
| 98 | <noeud cle="models" type="singleton">
|
|---|
| 99 | <ref type="xpath-statique">concat('@', getIdFromPath(@sc:refUri))</ref>
|
|---|
| 100 | </noeud>
|
|---|
| 101 | </listenoeuds>
|
|---|
| 102 |
|
|---|
| 103 | <!-- @API -->
|
|---|
| 104 | <valeur code="internalized">
|
|---|
| 105 | <source>always</source>
|
|---|
| 106 | </valeur>
|
|---|
| 107 | </structure>
|
|---|
| 108 | </set>
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 | <!-- ### -->
|
|---|
| 112 | <!-- Feuille de stockage du modèle. -->
|
|---|
| 113 | <!-- # -->
|
|---|
| 114 |
|
|---|
| 115 | <!-- @API Item public et internalisé : Extrait XSL pour la génération des attr de l'item incluant ce modèle -->
|
|---|
| 116 | <valeur code="ssXslGenAttrRefs">
|
|---|
| 117 | <source type="xslOnSrc-dynamique" href="bs:ssGenAttrRefs.xsl"/>
|
|---|
| 118 | </valeur>
|
|---|
| 119 |
|
|---|
| 120 | <!-- @API Item public et internalisé : Liste de <validAttrMatchSgn ....> -->
|
|---|
| 121 | <valeur code="ssValidSgnRefs">
|
|---|
| 122 | <source type="xslOnSrc-dynamique" href="bs:ssValidSgnRefs.xsl"/>
|
|---|
| 123 | </valeur>
|
|---|
| 124 |
|
|---|
| 125 | <!-- @API Item public et internalisé : Extrait RelaxNG pour la définition de ce modèle.
|
|---|
| 126 | La définition de ce modèle doit etre inclus dans une balise sng:define de name
|
|---|
| 127 | correspondant au code du modèle (//codeModel).
|
|---|
| 128 | Cet appel doit être appelé dans un contexte gérant le buffer "ns".
|
|---|
| 129 | -->
|
|---|
| 130 | <valeur code="relaxNg">
|
|---|
| 131 | <source type="xslOnSrc-dynamique" href="bs:relaxNg.rng.xsl"/>
|
|---|
| 132 | <!--
|
|---|
| 133 | <source type="composition-dynamique">
|
|---|
| 134 | <c:composition xmlns:c="composition" xmlns:sng="http://relaxng.org/ns/structure/1.0">
|
|---|
| 135 | <c:donnee type="xpath-dynamique">execute(setEntryBuffer('ns', resultatAgent('//prefixModel'), resultatAgent('//nsModel')))</c:donnee>
|
|---|
| 136 | <sng:define name="{donnee?type=xpath-dynamique:resultatAgent('//codeModel')}">
|
|---|
| 137 | <sng:element name="{donnee?type=xpath-dynamique:resultatAgent('//qNameTagRootModel')}">
|
|---|
| 138 | <sng:zeroOrMore>
|
|---|
| 139 | <sng:grammar>
|
|---|
| 140 | <sng:start>
|
|---|
| 141 | <sng:ref name="any"/>
|
|---|
| 142 | </sng:start>
|
|---|
| 143 | <sng:define name="any">
|
|---|
| 144 | <sng:element>
|
|---|
| 145 | <sng:anyName/>
|
|---|
| 146 | <sng:zeroOrMore>
|
|---|
| 147 | <sng:attribute>
|
|---|
| 148 | <sng:anyName/>
|
|---|
| 149 | </sng:attribute>
|
|---|
| 150 | </sng:zeroOrMore>
|
|---|
| 151 | <sng:zeroOrMore>
|
|---|
| 152 | <sng:choice>
|
|---|
| 153 | <sng:ref name="any"/>
|
|---|
| 154 | <sng:text/>
|
|---|
| 155 | </sng:choice>
|
|---|
| 156 | </sng:zeroOrMore>
|
|---|
| 157 | </sng:element>
|
|---|
| 158 | </sng:define>
|
|---|
| 159 | </sng:grammar>
|
|---|
| 160 | </sng:zeroOrMore>
|
|---|
| 161 | </sng:element>
|
|---|
| 162 | </sng:define>
|
|---|
| 163 | </c:composition>
|
|---|
| 164 | </source>
|
|---|
| 165 | -->
|
|---|
| 166 | </valeur>
|
|---|
| 167 |
|
|---|
| 168 |
|
|---|
| 169 | <!-- ### -->
|
|---|
| 170 | <!-- # Feuilles d'edition -->
|
|---|
| 171 | <!-- # -->
|
|---|
| 172 |
|
|---|
| 173 | <!-- @API Retourne une série de templates XSL pour construire une vue XHTML sur ce modèle.
|
|---|
| 174 | -->
|
|---|
| 175 | <valeur code="previewXslTemplates">
|
|---|
| 176 | <source type="xslOnSrc-dynamique" href="bs:preview.xsl.xsl"/>
|
|---|
| 177 | </valeur>
|
|---|
| 178 | <affichage code="dynamicHtmlStyle.css">
|
|---|
| 179 | <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/preview/dynamicHtmlStyle.css')</urlPage>
|
|---|
| 180 | <page>
|
|---|
| 181 | <zone cle="mainZone" type="xslOnSrc-dynamique" href="bs:preview/dynamicHtmlStyle.css.xsl"/>
|
|---|
| 182 | </page>
|
|---|
| 183 | </affichage>
|
|---|
| 184 |
|
|---|
| 185 | <!-- @API Retourne l'url pour inclure l'édition XED de type formulaire de ce modèle. Cette url est composée
|
|---|
| 186 | du nom de fichier suivi de '#' et de l'ID de l'élément dans le fichier xed destiné à être
|
|---|
| 187 | inclus dans une édition formulaire.
|
|---|
| 188 | Exemple d'utilisation : <se:ref se:refurl="[![agent=//xedRefUrlForm]!]"/>
|
|---|
| 189 | -->
|
|---|
| 190 | <valeur code="xedRefUrlForm">
|
|---|
| 191 | <source type="xpathOnSrc-dynamique">si(sm:authoring/sm:formEditor[not(@key)]/sm:xmlEditor/@sc:refUri,
|
|---|
| 192 | resultatAgent(concat('@', getIdFromPath(sm:authoring/sm:formEditor[not(@key)]/sm:xmlEditor/@sc:refUri), '/xedRefUrlForm')),
|
|---|
| 193 | concat(
|
|---|
| 194 | resultatAgent('//form.xed.xml/xedPage', 'act:'),
|
|---|
| 195 | '#text',
|
|---|
| 196 | resultatAgent('//setXedNsBuffer')
|
|---|
| 197 | )
|
|---|
| 198 | )
|
|---|
| 199 | </source>
|
|---|
| 200 | </valeur>
|
|---|
| 201 |
|
|---|
| 202 | <!-- @API Retourne l'url pour inclure l'édition XED de type formulaire de ce modèle internalisé dans d'autres items
|
|---|
| 203 | En masquant son élément d'entête, car faisant doublon avec la balise de encadrante.
|
|---|
| 204 | Cette url est composée du nom de fichier suivi de '#' et de l'ID de l'élément dans le fichier xed
|
|---|
| 205 | destiné à être inclus dans une édition formulaire.
|
|---|
| 206 | Exemple d'utilisation : <se:ref se:refurl="[![agent=//xedRefUrlForm]!]"/>
|
|---|
| 207 | -->
|
|---|
| 208 | <valeur code="xedRefUrlFormHideHeader">
|
|---|
| 209 | <source type="xpathOnSrc-dynamique">si(sm:authoring/sm:formEditor[not(@key)]/sm:xmlEditor/@sc:refUri,
|
|---|
| 210 | resultatAgent(concat('@', getIdFromPath(sm:authoring/sm:formEditor[not(@key)]/sm:xmlEditor/@sc:refUri), '/xedRefUrlFormHideHeader')),
|
|---|
| 211 | concat(
|
|---|
| 212 | resultatAgent('//form.xed.xml/xedPage', 'act:'),
|
|---|
| 213 | '#text:hideHeader',
|
|---|
| 214 | resultatAgent('//setXedNsBuffer')
|
|---|
| 215 | )
|
|---|
| 216 | )
|
|---|
| 217 | </source>
|
|---|
| 218 | </valeur>
|
|---|
| 219 |
|
|---|
| 220 | <!-- @API idem xedRefUrlForm pour une key spéciale de formEditor.
|
|---|
| 221 | -->
|
|---|
| 222 | <valeur code="xedRefUrlForm2" racine="sm:authoring/sm:formEditor[@key]" codecomposant="concat('xedRefUrlForm', @key)">
|
|---|
| 223 | <source type="xpathOnSrc-dynamique">si(sm:xmlEditor/@sc:refUri,
|
|---|
| 224 | resultatAgent(concat('@', getIdFromPath(sm:xmlEditor/@sc:refUri), '/xedRefUrlForm')),
|
|---|
| 225 | concat(
|
|---|
| 226 | resultatAgent(concat('//form', @key, '.xed.xml/xedPage'), 'act:'),
|
|---|
| 227 | '#text',
|
|---|
| 228 | resultatAgent('//setXedNsBuffer')
|
|---|
| 229 | )
|
|---|
| 230 | )
|
|---|
| 231 | </source>
|
|---|
| 232 | </valeur>
|
|---|
| 233 |
|
|---|
| 234 | <!-- @API idem xedRefUrlFormHideHeader pour une key spéciale de formEditor.
|
|---|
| 235 | -->
|
|---|
| 236 | <valeur code="xedRefUrlFormHideHeader2" racine="sm:authoring/sm:formEditor[@key]" codecomposant="concat('xedRefUrlFormHideHeader', @key)">
|
|---|
| 237 | <source type="xpathOnSrc-dynamique">si(sm:xmlEditor/@sc:refUri,
|
|---|
| 238 | resultatAgent(concat('@', getIdFromPath(sm:xmlEditor/@sc:refUri), '/xedRefUrlFormHideHeader')),
|
|---|
| 239 | concat(
|
|---|
| 240 | resultatAgent(concat('//form', @key, '.xed.xml/xedPage'), 'act:'),
|
|---|
| 241 | '#text:hideHeader',
|
|---|
| 242 | resultatAgent('//setXedNsBuffer')
|
|---|
| 243 | )
|
|---|
| 244 | )
|
|---|
| 245 | </source>
|
|---|
| 246 | </valeur>
|
|---|
| 247 |
|
|---|
| 248 | <!-- Page Xed Form. -->
|
|---|
| 249 | <valeur code="form.xed.xml" racine="si(sm:authoring/sm:formEditor, sm:authoring/sm:formEditor, .)" codecomposant="concat('form', @key, '.xed.xml')">
|
|---|
| 250 | <source type="xpathOnSrc-dynamique">si(sm:authoring/sm:formEditor[not(@key)]/sm:xmlEditor/@sc:refUri,
|
|---|
| 251 | resultatAgent(concat('@', getIdFromPath(sm:authoring/sm:formEditor[not(@key)]/sm:xmlEditor/@sc:refUri), '/form.xed.xml'), 'act:'),
|
|---|
| 252 | resultatAgent('xedPage', 'act:')
|
|---|
| 253 | )
|
|---|
| 254 | </source>
|
|---|
| 255 | <affichage code="xedPage">
|
|---|
| 256 | <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/form', resultatAgent(key), '.xed.xml')</urlPage>
|
|---|
| 257 | <page>
|
|---|
| 258 | <modele>xedNs</modele>
|
|---|
| 259 | <zone cle="mainZone" type="xslOnSrc-dynamique" href="bs:form.xed.xml.xsl"/>
|
|---|
| 260 | <info cle="ns:1">#default=http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</info>
|
|---|
| 261 | <info cle="ns:2">sc=http://www.utc.fr/ics/scenari/v3/core</info>
|
|---|
| 262 | <info cle="ns:3" type="xpath-dynamique">concat(resultatAgent('//prefixModel'), '=', resultatAgent('//nsModel'))</info>
|
|---|
| 263 | <info cle="xedDeclareNs:1">sc</info>
|
|---|
| 264 | <info cle="xedDeclareNs:2" type="resultat-dynamique">agent=//prefixModel</info>
|
|---|
| 265 | </page>
|
|---|
| 266 | <valeur code="key">
|
|---|
| 267 | <source type="xpath-statique">@key</source>
|
|---|
| 268 | </valeur>
|
|---|
| 269 | <affichage code="uilib.xml">
|
|---|
| 270 | <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/xedUi', resultatAgent(../key), '/uilib.xml')</urlPage>
|
|---|
| 271 | <page>
|
|---|
| 272 | <zone cle="mainZone" type="inclusion-dynamique">
|
|---|
| 273 | <source href="bs:xedUi/uilib.xml.xml"/>
|
|---|
| 274 | </zone>
|
|---|
| 275 | </page>
|
|---|
| 276 | </affichage>
|
|---|
| 277 | <affichage code="text.xbl.xml">
|
|---|
| 278 | <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/xedUi', resultatAgent(../key), '/text.xbl.xml')</urlPage>
|
|---|
| 279 | <page>
|
|---|
| 280 | <zone cle="mainZone" type="xslOnSrc-dynamique" href="bs:xedUi/text.xbl.xml.xsl"/>
|
|---|
| 281 | </page>
|
|---|
| 282 | </affichage>
|
|---|
| 283 | <affichage code="textHtmlEdit.css">
|
|---|
| 284 | <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/xedUi', resultatAgent(../key), '/textHtmlEdit.css')</urlPage>
|
|---|
| 285 | <page>
|
|---|
| 286 | <zone cle="mainZone" type="xslOnSrc-dynamique" href="bs:xedUi/textHtmlEdit.css.xsl"/>
|
|---|
| 287 | </page>
|
|---|
| 288 | </affichage>
|
|---|
| 289 | <affichage code="textHtmlTag.css">
|
|---|
| 290 | <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/xedUi', resultatAgent(../key), '/textHtmlTag.css')</urlPage>
|
|---|
| 291 | <page>
|
|---|
| 292 | <zone cle="mainZone">
|
|---|
| 293 | @charset "UTF-8";
|
|---|
| 294 | @namespace url("http://www.w3.org/1999/xhtml");
|
|---|
| 295 | @namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
|---|
| 296 |
|
|---|
| 297 | inlineStyle:before,
|
|---|
| 298 | textLeaf:before,
|
|---|
| 299 | uLink:before,
|
|---|
| 300 | phrase:before
|
|---|
| 301 | {
|
|---|
| 302 | content: "<" !important;
|
|---|
| 303 | color:grey !important;
|
|---|
| 304 | font-weight:normal !important;
|
|---|
| 305 | }
|
|---|
| 306 | inlineStyle:after,
|
|---|
| 307 | textLeaf:after,
|
|---|
| 308 | uLink:after,
|
|---|
| 309 | phrase:after
|
|---|
| 310 | {
|
|---|
| 311 | content: ">" !important;
|
|---|
| 312 | color:grey !important;
|
|---|
| 313 | font-weight:normal !important;
|
|---|
| 314 | }
|
|---|
| 315 |
|
|---|
| 316 | body{
|
|---|
| 317 | background-color: #F5F5F5 !important;
|
|---|
| 318 | }
|
|---|
| 319 |
|
|---|
| 320 | ul{
|
|---|
| 321 | border-left: 1px solid #D5D5D5;
|
|---|
| 322 | }
|
|---|
| 323 |
|
|---|
| 324 | ol{
|
|---|
| 325 | border-left: 1px solid #D5D5D5;
|
|---|
| 326 | }
|
|---|
| 327 |
|
|---|
| 328 | litem{
|
|---|
| 329 | border-left: 1px solid #DED2E6;
|
|---|
| 330 | }
|
|---|
| 331 |
|
|---|
| 332 | dir{
|
|---|
| 333 | border-left: 1px solid #D5D5D5;
|
|---|
| 334 | }
|
|---|
| 335 |
|
|---|
| 336 | para,
|
|---|
| 337 | member,
|
|---|
| 338 | caption,
|
|---|
| 339 | captionBlock,
|
|---|
| 340 | title{
|
|---|
| 341 | background-color: rgba(255,255,255, .6);
|
|---|
| 342 | }
|
|---|
| 343 | </zone>
|
|---|
| 344 | </page>
|
|---|
| 345 | </affichage>
|
|---|
| 346 | <!-- Ecrans de propriétés des notes ! dépendant de la key du formEditor et du role de la note. -->
|
|---|
| 347 | <affichage code="noteProps.xul" racine="/*/sm:structure/sm:inlineTags/sm:noteTag" codecomposant="concat('noteProps_', @role, '.xul')">
|
|---|
| 348 | <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/xedUi', resultatAgent('../key'), '/', codeAgent(.))</urlPage>
|
|---|
| 349 | <page>
|
|---|
| 350 | <zone cle="mainZone" type="inclusion-dynamique">
|
|---|
| 351 | <source type="xsl-statique" href="bs:xedUi/noteProps.xul.xsl"/>
|
|---|
| 352 | </zone>
|
|---|
| 353 | </page>
|
|---|
| 354 | </affichage>
|
|---|
| 355 | </affichage>
|
|---|
| 356 | </valeur>
|
|---|
| 357 |
|
|---|
| 358 | <!-- Ecrans de propriétés de l'éditeur formulaire. -->
|
|---|
| 359 | <affichage code="extBlockProps.xul" racine="sm:structure/sm:blockTags/sm:extBlockTag" codecomposant="concat('extBlockProps_', @role, '.xul')">
|
|---|
| 360 | <actif type="xpath-dynamique">resultatAgent(concat('//isExtBlock_', @role))</actif>
|
|---|
| 361 | <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/xedUi/', codeAgent(.))</urlPage>
|
|---|
| 362 | <page>
|
|---|
| 363 | <zone cle="mainZone" type="xslOnSrc-dynamique" href="bs:xedUi/extBlockProps.xul.xsl"/>
|
|---|
| 364 | </page>
|
|---|
| 365 | </affichage>
|
|---|
| 366 | <affichage code="phraseProps.xul" racine="sm:structure/sm:inlineTags/sm:phraseTag" codecomposant="concat('phraseProps_', @role, '.xul')">
|
|---|
| 367 | <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/xedUi/', codeAgent(.))</urlPage>
|
|---|
| 368 | <page>
|
|---|
| 369 | <zone cle="mainZone" type="xsl-statique" href="bs:xedUi/phraseProps.xul.xsl"/>
|
|---|
| 370 | </page>
|
|---|
| 371 | </affichage>
|
|---|
| 372 | <affichage code="uLinkProps.xul" racine="sm:structure/sm:inlineTags/sm:uLinkTag" codecomposant="concat('uLinkProps_', @role, '.xul')">
|
|---|
| 373 | <actif type="xpath-dynamique">resultatAgent(concat('//isULink_', @role))</actif>
|
|---|
| 374 | <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/xedUi/', codeAgent(.))</urlPage>
|
|---|
| 375 | <page>
|
|---|
| 376 | <zone cle="mainZone" type="xslOnSrc-dynamique" href="bs:xedUi/uLinkProps.xul.xsl"/>
|
|---|
| 377 | </page>
|
|---|
| 378 | </affichage>
|
|---|
| 379 | <affichage code="objectLeafProps.xul" racine="sm:structure/sm:inlineTags/sm:objectLeafTag" codecomposant="concat('objectLeafProps_', @role, '.xul')">
|
|---|
| 380 | <actif type="xpath-dynamique">resultatAgent(concat('//isObjectLeaf_', @role))</actif>
|
|---|
| 381 | <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/xedUi/', codeAgent(.))</urlPage>
|
|---|
| 382 | <page>
|
|---|
| 383 | <zone cle="mainZone" type="xslOnSrc-dynamique" href="bs:xedUi/objectLeafProps.xul.xsl"/>
|
|---|
| 384 | </page>
|
|---|
| 385 | </affichage>
|
|---|
| 386 | <affichage code="inlineImgProps.xul" racine="sm:structure/sm:inlineTags/sm:inlineImgTag" codecomposant="concat('inlineImgProps_', @role, '.xul')">
|
|---|
| 387 | <actif type="xpath-dynamique">resultatAgent(concat('//isInlineImg_', @role))</actif>
|
|---|
| 388 | <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/xedUi/', codeAgent(.))</urlPage>
|
|---|
| 389 | <page>
|
|---|
| 390 | <zone cle="mainZone" type="xslOnSrc-dynamique" href="bs:xedUi/inlineImgProps.xul.xsl"/>
|
|---|
| 391 | </page>
|
|---|
| 392 | </affichage>
|
|---|
| 393 |
|
|---|
| 394 | <!-- Test si cet extBlock doit être actif ou non (dépend de ses modèles liés). -->
|
|---|
| 395 | <valeur code="isExtBlock_" racine="sm:structure/sm:blockTags/sm:extBlockTag" codecomposant="concat('isExtBlock_', @role)">
|
|---|
| 396 | <source type="xpathOnSrc-dynamique">testExpr(sm:refItem/sm:allowedModel, resultatAgent(concat('@', getIdFromPath(@sc:refUri), '/isStandAloneItem')) = 'true', 'or')</source>
|
|---|
| 397 | <resultat cache="*"/>
|
|---|
| 398 | </valeur>
|
|---|
| 399 |
|
|---|
| 400 | <!-- Test si cet inlineImg doit être actif ou non (dépend de ses modèles liés). -->
|
|---|
| 401 | <valeur code="isInlineImg_" racine="sm:structure/sm:inlineTags/sm:inlineImgTag" codecomposant="concat('isInlineImg_', @role)">
|
|---|
| 402 | <source type="xpathOnSrc-dynamique">testExpr(sm:allowedModel, resultatAgent(concat('@', getIdFromPath(@sc:refUri), '/isStandAloneItem')) = 'true', 'or')</source>
|
|---|
| 403 | <resultat cache="*"/>
|
|---|
| 404 | </valeur>
|
|---|
| 405 |
|
|---|
| 406 | <!-- Test si ce uLink doit être actif ou non (dépend de ses modèles liés). -->
|
|---|
| 407 | <valeur code="isULink_" racine="sm:structure/sm:inlineTags/sm:uLinkTag" codecomposant="concat('isULink_', @role)">
|
|---|
| 408 | <source type="xpathOnSrc-dynamique">si(count(sm:externalUrl)> 0, 'true', testExpr(sm:refItem/sm:allowedModel, resultatAgent(concat('@', getIdFromPath(@sc:refUri), '/isStandAloneItem')) = 'true', 'or'))</source>
|
|---|
| 409 | <resultat cache="*"/>
|
|---|
| 410 | </valeur>
|
|---|
| 411 |
|
|---|
| 412 | <!-- Test si ce ObjectLeaf doit être actif ou non (dépend de ses modèles liés). -->
|
|---|
| 413 | <valeur code="isObjectLeaf_" racine="sm:structure/sm:inlineTags/sm:objectLeafTag" codecomposant="concat('isObjectLeaf_', @role)">
|
|---|
| 414 | <source type="xpathOnSrc-dynamique">testExpr(sm:refItem/sm:allowedModel, resultatAgent(concat('@', getIdFromPath(@sc:refUri), '/isStandAloneItem')) = 'true', 'or')</source>
|
|---|
| 415 | <resultat cache="*"/>
|
|---|
| 416 | </valeur>
|
|---|
| 417 |
|
|---|
| 418 | <!-- Test si le tag passé en $vArguments possède des metas actifs. -->
|
|---|
| 419 | <valeur code="isMetaEnabled">
|
|---|
| 420 | <source type="xpath-dynamique">bool2Str($vArguments/sm:meta/@sc:refUri and resultatAgent('/@@/isInternalizableClass', getIdFromPath($vArguments/sm:meta/@sc:refUri))='true') </source>
|
|---|
| 421 | </valeur>
|
|---|
| 422 |
|
|---|
| 423 | <!-- Retourne l'url du xed des meta du tag passé en $vArguments.
|
|---|
| 424 | TODO à enrichir pour pointer le code de l'éditor à définir dans le sm:authoring
|
|---|
| 425 | -->
|
|---|
| 426 | <valeur code="getUrlXedMeta">
|
|---|
| 427 | <source type="xpath-dynamique">si(resultatAgent('//isMetaEnabled', $vArguments), resultatAgent(concat('@', getIdFromPath($vArguments/sm:meta/@sc:refUri), '/xedRefUrlForm')), '')</source>
|
|---|
| 428 | </valeur>
|
|---|
| 429 |
|
|---|
| 430 | <!-- ### -->
|
|---|
| 431 | <!-- # INTERNE -->
|
|---|
| 432 | <!-- # -->
|
|---|
| 433 |
|
|---|
| 434 | <!-- NS du modèle -->
|
|---|
| 435 | <valeur code="nsModel">
|
|---|
| 436 | <source type="xpath-statique">sm:identification/@targetNamespace</source>
|
|---|
| 437 | </valeur>
|
|---|
| 438 | <!-- Tag root du modèle -->
|
|---|
| 439 | <valeur code="tagRootModel">
|
|---|
| 440 | <source type="xpath-statique">sm:identification/@code</source>
|
|---|
| 441 | </valeur>
|
|---|
| 442 | <!-- Préfixe pour les balises du modèle -->
|
|---|
| 443 | <valeur code="prefixModel">
|
|---|
| 444 | <source type="xpath-statique">sm:identification/@targetPrefix</source>
|
|---|
| 445 | </valeur>
|
|---|
| 446 | <!-- Affecte le buffer "ns" -->
|
|---|
| 447 | <valeur code="setXedNsBuffer">
|
|---|
| 448 | <source type="xpath-dynamique">execute(setEntryBuffer('ns', resultatAgent('//prefixModel'), resultatAgent('//nsModel')), setEntryBuffer('xedDeclareNs', resultatAgent('//prefixModel')))</source>
|
|---|
| 449 | </valeur>
|
|---|
| 450 | <!-- Nom qualifié du tag root du modèle : prefix:localName -->
|
|---|
| 451 | <valeur code="qNameTagRootModel">
|
|---|
| 452 | <source type="xpath-statique">concat(sm:identification/@targetPrefix, ':', sm:identification/@code)</source>
|
|---|
| 453 | </valeur>
|
|---|
| 454 |
|
|---|
| 455 | </structure>
|
|---|