Project

General

Profile

« Previous | Next » 

Revision 1445

migration 3.6.003

View differences:

res.transf
1
<?xml version="1.0" encoding="UTF-8"?>
2
<sm:compositionOdtTransf xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0">
3
	<sm:model sc:refUri="/academic/model/Re/res.model"/>
4
	<sm:content>
5
		<sm:inDataOrder>
6
			<sm:for codes="txt txtRes">
7
				<sm:callSubModel/>
8
			</sm:for>
9
			<sm:for codes="listing">
10
				<!--paragraphe vide utile pour créer un leger espace avant le listing (la section ne possède pas de space before dans OO...)-->
11
				<sm:WParagraph style="spaceBefore" display="always"/>
12
				<sm:callSubModel/>
13
			</sm:for>
14
			<sm:for codes="bkquote">
15
				<sm:WParagraph style="spaceBefore" display="always"/>
16
				<sm:WBox style="bkquoteBox">
17
					<sm:WSection style="bkquote">
18
						<sm:label>
19
							<sm:fixedTitle value="bkquote"/>
20
						</sm:label>
21
						<sm:callSubModel/>
22
						<sm:WParagraph style="space" display="always"/>
23
					</sm:WSection>
24
				</sm:WBox>
25
				<sm:WParagraph style="spaceBefore" display="always"/>
26
			</sm:for>
27
			<sm:for codes="form tab img graph vid int zoom">
28
				<sm:choose>
29
					<sm:when xpath="op:instructionM">
30
						<sm:callPartMeta/>
31
					</sm:when>
32
				</sm:choose>
33
				<sm:choose>
34
					<!--Présence de ressource alternative-->
35
					<sm:when xpath="string-length(resultatAgent(concat(resultatAgent(concat($vContentAgt, '/metaAgt')), '_Aalt', '/getContent')))&gt;0">
36
						<!--# Crédit-->
37
						<sm:dataBlock category="cprRes">
38
							<sm:blockId>
39
								<sm:subModelId/>
40
							</sm:blockId>
41
							<sm:label>
42
								<sm:title>
43
									<sm:subModelTitle/>
44
								</sm:title>
45
							</sm:label>
46
							<sm:data>
47
								<sm:callSubModelMeta axis="credit"/>
48
							</sm:data>
49
						</sm:dataBlock>
50
						<!--# Ressource-->
51
						<sm:dataBlock category="res">
52
							<sm:overrideContentDeclaration>
53
								<sm:callBlockData/>
54
							</sm:overrideContentDeclaration>
55
							<sm:blockId>
56
								<sm:subModelId/>
57
							</sm:blockId>
58
							<sm:label>
59
								<sm:title>
60
									<sm:subModelTitle/>
61
								</sm:title>
62
							</sm:label>
63
							<sm:data>
64
								<sm:callSubModelMeta axis="alt"/>
65
							</sm:data>
66
						</sm:dataBlock>
67
					</sm:when>
1
<?xml version="1.0" encoding="UTF-8"?><sm:compositionOdtTransf xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0">
2
	<sm:model sc:refUri="/academic/model/Re/res.model"/>
3
	<sm:content>
4
		<sm:inDataOrder>
5
			<sm:for codes="txt txtRes">
6
				<sm:callSubModel/>
7
			</sm:for>
8
			<sm:for codes="listing">
9
				<!--paragraphe vide utile pour créer un leger espace avant le listing (la section ne possède pas de space before dans OO...)-->
10
				<sm:WParagraph style="spaceBefore" display="always"/>
11
				<sm:callSubModel/>
12
			</sm:for>
13
			<sm:for codes="bkquote">
14
				<sm:WParagraph style="spaceBefore" display="always"/>
15
				<sm:WBox style="bkquoteBox">
16
					<sm:WSection style="bkquote">
17
						<sm:label>
18
							<sm:fixedTitle value=";bkquote"/>
19
						</sm:label>
20
						<sm:callSubModel/>
21
						<sm:WParagraph style="space" display="always"/>
22
					</sm:WSection>
23
				</sm:WBox>
24
				<sm:WParagraph style="spaceBefore" display="always"/>
25
			</sm:for>
26
			<sm:for codes="form tab img graph vid int zoom">
27
				<sm:choose>
28
					<sm:when xpath="op:instructionM">
29
						<sm:callPartMeta/>
30
					</sm:when>
31
				</sm:choose>
32
				<sm:choose>
33
					<!--Présence de ressource alternative-->
34
					<sm:when xpath="string-length(resultatAgent(concat(resultatAgent(concat($vContentAgt, '/metaAgt')), '_Aalt', '/getContent')))&gt;0">
35
						<!--# Crédit-->
36
						<sm:dataBlock category="cprRes">
37
							<sm:blockId>
38
								<sm:subModelId/>
39
							</sm:blockId>
40
							<sm:label>
41
								<sm:title>
42
									<sm:subModelTitle/>
43
								</sm:title>
44
							</sm:label>
45
							<sm:data>
46
								<sm:callSubModelMeta axis="credit"/>
47
							</sm:data>
48
						</sm:dataBlock>
49
						<!--# Ressource-->
50
						<sm:dataBlock category="res">
51
							<sm:overrideContentDeclaration>
52
								<sm:callBlockData/>
53
							</sm:overrideContentDeclaration>
54
							<sm:blockId>
55
								<sm:subModelId/>
56
							</sm:blockId>
57
							<sm:label>
58
								<sm:title>
59
									<sm:subModelTitle/>
60
								</sm:title>
61
							</sm:label>
62
							<sm:data>
63
								<sm:callSubModelMeta axis="alt"/>
64
							</sm:data>
65
						</sm:dataBlock>
66
					</sm:when>
68 67
					<!--# si pas d'alternative, on n'affiche que les res connues
69
Graph : cas particulier car contient ODG et SWF-->
70
					<sm:when xpath="(name()!='sp:graph' and name()!='sp:vid' and name()!='sp:int' and name()!='sp:zoom') or typeAgent(normalize-space($vContentAgt))='sfile_odg'">
71
						<!--# Crédit-->
72
						<sm:dataBlock category="cprRes">
73
							<sm:blockId>
74
								<sm:subModelId/>
75
							</sm:blockId>
76
							<sm:label>
77
								<sm:title>
78
									<sm:subModelTitle/>
79
								</sm:title>
80
							</sm:label>
81
							<sm:data>
82
								<sm:callSubModelMeta axis="credit"/>
83
							</sm:data>
84
						</sm:dataBlock>
85
						<!--# Ressource-->
86
						<sm:dataBlock category="res">
87
							<sm:overrideContentDeclaration>
88
								<sm:callBlockData/>
89
							</sm:overrideContentDeclaration>
90
							<sm:blockId>
91
								<sm:subModelId/>
92
							</sm:blockId>
93
							<sm:label>
94
								<sm:title>
95
									<sm:subModelTitle/>
96
								</sm:title>
97
							</sm:label>
98
							<sm:data>
99
								<sm:Widget sc:refUri="/academic/gen/_od/widgets/res.odwidget">
100
									<sm:odContentZone key="title">
101
										<sm:title>
102
											<sm:subModelTitle/>
103
										</sm:title>
104
									</sm:odContentZone>
105
									<sm:odContentZone key="content">
106
										<sm:callSubModel/>
107
									</sm:odContentZone>
108
								</sm:Widget>
109
							</sm:data>
110
						</sm:dataBlock>
111
					</sm:when>
112
				</sm:choose>
113
			</sm:for>
114
		</sm:inDataOrder>
115
	</sm:content>
68
Graph : cas particulier car contient ODG et SWF-->

69
					<sm:when xpath="(name()!='sp:graph' and name()!='sp:vid' and name()!='sp:int' and name()!='sp:zoom') or typeAgent(normalize-space($vContentAgt))='sfile_odg'">

70
						<!--# Crédit-->

71
						<sm:dataBlock category="cprRes">

72
							<sm:blockId>

73
								<sm:subModelId/>

74
							</sm:blockId>

75
							<sm:label>

76
								<sm:title>

77
									<sm:subModelTitle/>

78
								</sm:title>

79
							</sm:label>

80
							<sm:data>

81
								<sm:callSubModelMeta axis="credit"/>

82
							</sm:data>

83
						</sm:dataBlock>

84
						<!--# Ressource-->

85
						<sm:dataBlock category="res">

86
							<sm:overrideContentDeclaration>

87
								<sm:callBlockData/>

88
							</sm:overrideContentDeclaration>

89
							<sm:blockId>

90
								<sm:subModelId/>

91
							</sm:blockId>

92
							<sm:label>

93
								<sm:title>

94
									<sm:subModelTitle/>

95
								</sm:title>

96
							</sm:label>

97
							<sm:data>

98
								<sm:Widget style="form_tab_img_graph_vid_int_zoom" sc:refUri="/academic/gen/_od/widgets/res.odwidget">

99
									<sm:odContentZone key="title">

100
										<sm:title>

101
											<sm:subModelTitle/>

102
										</sm:title>

103
									</sm:odContentZone>

104
									<sm:odContentZone key="content">

105
										<sm:callSubModel/>

106
									</sm:odContentZone>

107
								</sm:Widget>

108
							</sm:data>

109
						</sm:dataBlock>

110
					</sm:when>

111
				</sm:choose>

112
			</sm:for>

113
		</sm:inDataOrder>

114
	</sm:content>

116 115
</sm:compositionOdtTransf>

Also available in: Unified diff