Project

General

Profile

root / branches / sc50-v2.0 / sources2-0-011 / academic / gen / paper / transf / binaries / remoteImage / remoteImage@inline.transf @ 322

1
<?xml version="1.0"?>
2
<sm:remoteBinaryOdTransf xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core">
3
	<sm:model sc:refUri="/binaries/remoteImage/remoteImage.model"/>
4
	<sm:axis code="inline"/>
5
	<sm:fullTitleText>
6
		<sm:returnFirst>
7
			<sm:callBinaryMeta/>
8
			<sm:remoteBinaryFileName format="trimExtension"/>
9
		</sm:returnFirst>
10
	</sm:fullTitleText>
11
	<sm:content>
12
		<sm:choose>
13
			<sm:when xpath="starts-with(computeStrAgent('//remoteContentType'), 'image/svg+xml')"/>
14
			<sm:otherwise>
15
				<sm:WImage globalStyle="viewPictureInline">
16
					<sm:binaryUrl>
17
						<sm:imageTransform maxTargetDpi="300">
18
							<sm:scaleFromStandardCharSize targetFontSizeInPt="10">
19
								<sm:ifNoStandardCharSize>
20
									<sm:scale ratio="1" sourceDpi="300"/>
21
								</sm:ifNoStandardCharSize>
22
							</sm:scaleFromStandardCharSize>
23
							<sm:dimBounds unit="cm" maxWidth="10" maxHeight="2"/>
24
							<sm:outputAUTO/>
25
						</sm:imageTransform>
26
					</sm:binaryUrl>
27
				</sm:WImage>
28
			</sm:otherwise>
29
		</sm:choose>
30
	</sm:content>
31
</sm:remoteBinaryOdTransf>
(3-3/6)