powered by simpleCommunicator - 2.0.49     © 2025 Programmizd 02
Форумы / XML, XSL, XPath, XQuery [игнор отключен] [закрыт для гостей] / XSL как отобразить изображение
4 сообщений из 4, страница 1 из 1
XSL как отобразить изображение
    #39200796
fauster001
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Имеется код XML:
Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
212.
213.
214.
215.
216.
217.
218.
219.
220.
221.
222.
223.
224.
225.
226.
227.
228.
229.
230.
231.
232.
233.
234.
235.
236.
237.
238.
239.
240.
241.
242.
243.
244.
245.
246.
247.
248.
249.
250.
251.
252.
253.
254.
255.
256.
257.
258.
259.
260.
261.
262.
263.
264.
265.
266.
267.
268.
269.
270.
271.
272.
273.
274.
275.
276.
277.
278.
279.
280.
281.
282.
283.
284.
285.
286.
287.
288.
289.
290.
291.
292.
293.
294.
295.
296.
297.
298.
299.
300.
301.
302.
303.
304.
305.
306.
307.
308.
309.
310.
311.
312.
313.
314.
315.
316.
317.
318.
319.
320.
321.
322.
323.
324.
325.
326.
327.
328.
329.
330.
331.
332.
333.
334.
335.
336.
337.
338.
339.
340.
341.
342.
343.
344.
345.
346.
347.
348.
349.
350.
351.
352.
353.
354.
355.
356.
357.
358.
359.
360.
361.
362.
363.
364.
365.
366.
367.
368.
369.
370.
371.
372.
373.
374.
375.
376.
377.
378.
379.
380.
381.
382.
383.
384.
385.
386.
387.
388.
389.
390.
391.
392.
393.
394.
395.
396.
397.
398.
399.
400.
401.
402.
403.
404.
405.
406.
407.
408.
409.
410.
411.
412.
413.
414.
415.
416.
417.
418.
419.
420.
421.
422.
423.
424.
425.
426.
427.
428.
429.
430.
431.
432.
433.
434.
435.
436.
437.
438.
439.
440.
441.
442.
443.
444.
445.
446.
447.
448.
449.
450.
451.
452.
453.
454.
455.
456.
457.
458.
459.
460.
461.
462.
463.
464.
465.
466.
467.
468.
469.
470.
471.
472.
473.
474.
475.
476.
477.
478.
479.
480.
481.
482.
483.
484.
485.
486.
487.
488.
489.
490.
491.
492.
493.
494.
495.
496.
497.
498.
499.
500.
501.
502.
503.
504.
505.
506.
507.
508.
509.
510.
511.
512.
513.
514.
515.
516.
517.
518.
519.
520.
521.
522.
523.
524.
525.
526.
527.
528.
529.
530.
531.
<informationsystem id="15">
	<informationsystem_dir_id>0</informationsystem_dir_id>
	<structure_id>90</structure_id>
	<site_id>2</site_id>
	<name>Новости</name>
	<description></description>
	<items_sorting_direction>1</items_sorting_direction>
	<items_sorting_field>0</items_sorting_field>
	<groups_sorting_direction>0</groups_sorting_direction>
	<groups_sorting_field>0</groups_sorting_field>
	<image_large_max_width>500</image_large_max_width>
	<image_large_max_height>500</image_large_max_height>
	<image_small_max_width>80</image_small_max_width>
	<image_small_max_height>80</image_small_max_height>
	<siteuser_group_id>0</siteuser_group_id>
	<use_captcha>1</use_captcha>
	<watermark_file></watermark_file>
	<watermark_default_use_large_image>0</watermark_default_use_large_image>
	<watermark_default_use_small_image>0</watermark_default_use_small_image>
	<watermark_default_position_x>50%</watermark_default_position_x>
	<watermark_default_position_y>100%</watermark_default_position_y>
	<user_id>0</user_id>
	<items_on_page>5</items_on_page>
	<format_date>%d.%m.%Y</format_date>
	<format_datetime>%d.%m.%Y %H:%M:%S</format_datetime>
	<url_type>0</url_type>
	<typograph_default_items>1</typograph_default_items>
	<typograph_default_groups>1</typograph_default_groups>
	<apply_tags_automatically>1</apply_tags_automatically>
	<change_filename>1</change_filename>
	<apply_keywords_automatically>1</apply_keywords_automatically>
	<group_image_large_max_width>300</group_image_large_max_width>
	<group_image_large_max_height>300</group_image_large_max_height>
	<group_image_small_max_width>70</group_image_small_max_width>
	<group_image_small_max_height>70</group_image_small_max_height>
	<preserve_aspect_ratio>1</preserve_aspect_ratio>
	<preserve_aspect_ratio_small>1</preserve_aspect_ratio_small>
	<preserve_aspect_ratio_group>1</preserve_aspect_ratio_group>
	<preserve_aspect_ratio_group_small>1</preserve_aspect_ratio_group_small>
	<http>//barsukov.host2wind.ru</http>
	<url>/news/</url>
	<captcha_id>32125</captcha_id>
	<items_count>5</items_count>
	<items_total_count>5</items_total_count>
	<subgroups_count>6</subgroups_count>
	<subgroups_total_count>6</subgroups_total_count>
	<siteuser_id>0</siteuser_id>
	<ОтображатьСсылкуНаАрхив>0</ОтображатьСсылкуНаАрхив>
	<ОтображатьСсылкиНаСледующиеСтраницы>1</ОтображатьСсылкиНаСледующиеСтраницы>
	<ТекущаяГруппа>0</ТекущаяГруппа>
	<show_comments>1</show_comments>
	<show_add_comments>2</show_add_comments>
	<group>0</group>
	<page>0</page>
	<part>0</part>
	<limit>5</limit>
	<total>5</total>
	<informationsystem_group id="12">
		<informationsystem_id>15</informationsystem_id>
		<siteuser_id>0</siteuser_id>
		<parent_id>0</parent_id>
		<top_parent_id>0</top_parent_id>
		<name>Android</name>
		<description></description>
		<sorting>0</sorting>
		<path>12</path>
		<image_large></image_large>
		<image_small></image_small>
		<indexing>1</indexing>
		<subgroups_count>0</subgroups_count>
		<subgroups_total_count>0</subgroups_total_count>
		<items_count>0</items_count>
		<items_total_count>0</items_total_count>
		<seo_title></seo_title>
		<seo_description></seo_description>
		<seo_keywords></seo_keywords>
		<siteuser_group_id>-1</siteuser_group_id>
		<active>1</active>
		<user_id>19</user_id>
		<sns_type_id>0</sns_type_id>
		<url>/news/12/</url>
		<dir>/upload/information_system_15/0/1/2/group_12/</dir>
	</informationsystem_group>
	<informationsystem_group id="10">
		<informationsystem_id>15</informationsystem_id>
		<siteuser_id>0</siteuser_id>
		<parent_id>0</parent_id>
		<top_parent_id>0</top_parent_id>
		<name>PC</name>
		<description></description>
		<sorting>0</sorting>
		<path>10</path>
		<image_large></image_large>
		<image_small></image_small>
		<indexing>1</indexing>
		<subgroups_count>0</subgroups_count>
		<subgroups_total_count>0</subgroups_total_count>
		<items_count>0</items_count>
		<items_total_count>0</items_total_count>
		<seo_title></seo_title>
		<seo_description></seo_description>
		<seo_keywords></seo_keywords>
		<siteuser_group_id>-1</siteuser_group_id>
		<active>1</active>
		<user_id>19</user_id>
		<sns_type_id>0</sns_type_id>
		<url>/news/10/</url>
		<dir>/upload/information_system_15/0/1/0/group_10/</dir>
	</informationsystem_group>
	<informationsystem_group id="11">
		<informationsystem_id>15</informationsystem_id>
		<siteuser_id>0</siteuser_id>
		<parent_id>0</parent_id>
		<top_parent_id>0</top_parent_id>
		<name>PlayStation</name>
		<description></description>
		<sorting>0</sorting>
		<path>11</path>
		<image_large></image_large>
		<image_small></image_small>
		<indexing>1</indexing>
		<subgroups_count>0</subgroups_count>
		<subgroups_total_count>0</subgroups_total_count>
		<items_count>0</items_count>
		<items_total_count>0</items_total_count>
		<seo_title></seo_title>
		<seo_description></seo_description>
		<seo_keywords></seo_keywords>
		<siteuser_group_id>-1</siteuser_group_id>
		<active>1</active>
		<user_id>19</user_id>
		<sns_type_id>0</sns_type_id>
		<url>/news/11/</url>
		<dir>/upload/information_system_15/0/1/1/group_11/</dir>
	</informationsystem_group>
	<informationsystem_group id="13">
		<informationsystem_id>15</informationsystem_id>
		<siteuser_id>0</siteuser_id>
		<parent_id>0</parent_id>
		<top_parent_id>0</top_parent_id>
		<name>Xbox</name>
		<description></description>
		<sorting>0</sorting>
		<path>13</path>
		<image_large></image_large>
		<image_small></image_small>
		<indexing>1</indexing>
		<subgroups_count>0</subgroups_count>
		<subgroups_total_count>0</subgroups_total_count>
		<items_count>0</items_count>
		<items_total_count>0</items_total_count>
		<seo_title></seo_title>
		<seo_description></seo_description>
		<seo_keywords></seo_keywords>
		<siteuser_group_id>-1</siteuser_group_id>
		<active>1</active>
		<user_id>19</user_id>
		<sns_type_id>0</sns_type_id>
		<url>/news/13/</url>
		<dir>/upload/information_system_15/0/1/3/group_13/</dir>
	</informationsystem_group>
	<informationsystem_group id="14">
		<informationsystem_id>15</informationsystem_id>
		<siteuser_id>0</siteuser_id>
		<parent_id>0</parent_id>
		<top_parent_id>0</top_parent_id>
		<name>Железо</name>
		<description></description>
		<sorting>0</sorting>
		<path>14</path>
		<image_large></image_large>
		<image_small></image_small>
		<indexing>1</indexing>
		<subgroups_count>0</subgroups_count>
		<subgroups_total_count>0</subgroups_total_count>
		<items_count>0</items_count>
		<items_total_count>0</items_total_count>
		<seo_title></seo_title>
		<seo_description></seo_description>
		<seo_keywords></seo_keywords>
		<siteuser_group_id>-1</siteuser_group_id>
		<active>1</active>
		<user_id>19</user_id>
		<sns_type_id>0</sns_type_id>
		<url>/news/14/</url>
		<dir>/upload/information_system_15/0/1/4/group_14/</dir>
	</informationsystem_group>
	<informationsystem_item_properties>
		<property_dir id="1">
			<parent_id>0</parent_id>
			<name>Сайт2</name>
			<description></description>
			<sorting>0</sorting>
			<user_id>0</user_id>
			<property id="60">
				<property_dir_id>1</property_dir_id>
				<list_id>0</list_id>
				<informationsystem_id>0</informationsystem_id>
				<shop_id>0</shop_id>
				<name>Строка</name>
				<description></description>
				<type>1</type>
				<default_value></default_value>
				<tag_name>string</tag_name>
				<sorting>10</sorting>
				<image_large_max_width>300</image_large_max_width>
				<image_large_max_height>300</image_large_max_height>
				<image_small_max_width>70</image_small_max_width>
				<image_small_max_height>70</image_small_max_height>
				<hide_small_image>0</hide_small_image>
				<guid>2FE47B72-8766-4F8C-243F-A7C216796813</guid>
				<multiple>1</multiple>
				<user_id>0</user_id>
			</property>
		</property_dir>
	</informationsystem_item_properties>
	<informationsystem_item id="180">
		<informationsystem_id>15</informationsystem_id>
		<informationsystem_group_id>0</informationsystem_group_id>
		<shortcut_id>0</shortcut_id>
		<name>Perfecto vis, eum adipisci intel ne mea integre neglegentur no</name>
		<description>&lt;p&gt;&lt;span&gt;Has no atqui dictas iuvaret, ex suavitate voluptatum incorrupte eos. Nullam luptatum nominati ius voluptatum ea, nam omnium percipit et luptatum nominati ius ea&amp;hellip;&lt;/span&gt;&lt;/p&gt;</description>
		<active>1</active>
		<image_large>information_items_180.jpg</image_large>
		<image_small>small_information_items_180.jpg</image_small>
		<image_large_width>301</image_large_width>
		<image_large_height>187</image_large_height>
		<image_small_width>80</image_small_width>
		<image_small_height>50</image_small_height>
		<sorting>0</sorting>
		<ip>91.78.18.137</ip>
		<path>180</path>
		<indexing>1</indexing>
		<seo_title></seo_title>
		<seo_description></seo_description>
		<seo_keywords></seo_keywords>
		<siteuser_group_id>-1</siteuser_group_id>
		<showed>0</showed>
		<user_id>19</user_id>
		<siteuser_id>0</siteuser_id>
		<deleted>0</deleted>
		<url>/news/180/</url>
		<date>25.03.2016</date>
		<datetime>25.03.2016 15:02:34</datetime>
		<start_datetime>0000-00-00 00:00:00</start_datetime>
		<end_datetime>0000-00-00 00:00:00</end_datetime>
		<dir>/upload/information_system_15/1/8/0/item_180/</dir>
		<comments_count>0</comments_count>
		<comments_grade_sum>0</comments_grade_sum>
		<comments_grade_count>0</comments_grade_count>
		<comments_average_grade>0</comments_average_grade>
		<property_value id="105">
			<property_id>60</property_id>
			<entity_id>180</entity_id>
			<value></value>
			<property_dir_id>1</property_dir_id>
			<tag_name>string</tag_name>
		</property_value>
	</informationsystem_item>
	<informationsystem_item id="151">
		<informationsystem_id>15</informationsystem_id>
		<informationsystem_group_id>0</informationsystem_group_id>
		<shortcut_id>0</shortcut_id>
		<name>Apple снизила рублевые цены на MacBook и iPad</name>
		<description>Apple снизила в России примерно на 10 процентов стоимость на ряд своих продуктов, включая планшеты iPad и ноутбуки MacBook. Об этом свидетельствуют данные с официального сайта компании.</description>
		<active>1</active>
		<image_large></image_large>
		<image_small></image_small>
		<image_large_width></image_large_width>
		<image_large_height></image_large_height>
		<image_small_width></image_small_width>
		<image_small_height></image_small_height>
		<sorting>10</sorting>
		<ip>91.77.24.235</ip>
		<path>apple-snizila-rublevye-tseny-na-macbook-i-ipad</path>
		<indexing>1</indexing>
		<seo_title></seo_title>
		<seo_description></seo_description>
		<seo_keywords></seo_keywords>
		<siteuser_group_id>-1</siteuser_group_id>
		<showed>1</showed>
		<user_id>0</user_id>
		<siteuser_id>0</siteuser_id>
		<deleted>0</deleted>
		<url>/news/apple-snizila-rublevye-tseny-na-macbook-i-ipad/</url>
		<date>17.02.2016</date>
		<datetime>17.02.2016 22:33:35</datetime>
		<start_datetime>0000-00-00 00:00:00</start_datetime>
		<end_datetime>0000-00-00 00:00:00</end_datetime>
		<dir>/upload/information_system_15/1/5/1/item_151/</dir>
		<tag id="102">
			<tag_dir_id>0</tag_dir_id>
			<name>Apple</name>
			<path>Apple</path>
			<user_id>0</user_id>
			<description></description>
			<seo_title></seo_title>
			<seo_description></seo_description>
			<seo_keywords></seo_keywords>
			<urlencode>Apple</urlencode>
		</tag>
		<tag id="103">
			<tag_dir_id>0</tag_dir_id>
			<name>macbook</name>
			<path>macbook</path>
			<user_id>0</user_id>
			<description></description>
			<seo_title></seo_title>
			<seo_description></seo_description>
			<seo_keywords></seo_keywords>
			<urlencode>macbook</urlencode>
		</tag>
		<tag id="104">
			<tag_dir_id>0</tag_dir_id>
			<name>ipad</name>
			<path>ipad</path>
			<user_id>0</user_id>
			<description></description>
			<seo_title></seo_title>
			<seo_description></seo_description>
			<seo_keywords></seo_keywords>
			<urlencode>ipad</urlencode>
		</tag>
		<comments_count>0</comments_count>
		<comments_grade_sum>0</comments_grade_sum>
		<comments_grade_count>0</comments_grade_count>
		<comments_average_grade>0</comments_average_grade>
		<property_value id="16">
			<property_id>60</property_id>
			<entity_id>151</entity_id>
			<value>123</value>
			<property_dir_id>1</property_dir_id>
			<tag_name>string</tag_name>
		</property_value>
	</informationsystem_item>
	<informationsystem_item id="152">
		<informationsystem_id>15</informationsystem_id>
		<informationsystem_group_id>0</informationsystem_group_id>
		<shortcut_id>0</shortcut_id>
		<name>IPhone может сравниться по качеству съемки с зеркальными камерами</name>
		<description>Apple приобрела компанию LinX Imaging, специализирующуюся на камерах для смартфонов.</description>
		<active>1</active>
		<image_large></image_large>
		<image_small></image_small>
		<image_large_width></image_large_width>
		<image_large_height></image_large_height>
		<image_small_width></image_small_width>
		<image_small_height></image_small_height>
		<sorting>20</sorting>
		<ip>91.77.24.235</ip>
		<path>iphone-mozhet-sravnitsia-po-kachestvu-semki-s-zerkalnymi-kamerami</path>
		<indexing>1</indexing>
		<seo_title></seo_title>
		<seo_description></seo_description>
		<seo_keywords></seo_keywords>
		<siteuser_group_id>-1</siteuser_group_id>
		<showed>0</showed>
		<user_id>0</user_id>
		<siteuser_id>0</siteuser_id>
		<deleted>0</deleted>
		<url>/news/iphone-mozhet-sravnitsia-po-kachestvu-semki-s-zerkalnymi-kamerami/</url>
		<date>17.02.2016</date>
		<datetime>17.02.2016 22:33:35</datetime>
		<start_datetime>0000-00-00 00:00:00</start_datetime>
		<end_datetime>0000-00-00 00:00:00</end_datetime>
		<dir>/upload/information_system_15/1/5/2/item_152/</dir>
		<tag id="102">
			<tag_dir_id>0</tag_dir_id>
			<name>Apple</name>
			<path>Apple</path>
			<user_id>0</user_id>
			<description></description>
			<seo_title></seo_title>
			<seo_description></seo_description>
			<seo_keywords></seo_keywords>
			<urlencode>Apple</urlencode>
		</tag>
		<tag id="105">
			<tag_dir_id>0</tag_dir_id>
			<name>Linx</name>
			<path>Linx</path>
			<user_id>0</user_id>
			<description></description>
			<seo_title></seo_title>
			<seo_description></seo_description>
			<seo_keywords></seo_keywords>
			<urlencode>Linx</urlencode>
		</tag>
		<comments_count>0</comments_count>
		<comments_grade_sum>0</comments_grade_sum>
		<comments_grade_count>0</comments_grade_count>
		<comments_average_grade>0</comments_average_grade>
		<property_value id="17">
			<property_id>60</property_id>
			<entity_id>152</entity_id>
			<value></value>
			<property_dir_id>1</property_dir_id>
			<tag_name>string</tag_name>
		</property_value>
	</informationsystem_item>
	<informationsystem_item id="153">
		<informationsystem_id>15</informationsystem_id>
		<informationsystem_group_id>0</informationsystem_group_id>
		<shortcut_id>0</shortcut_id>
		<name>YouTube исчез из старых устройств Apple</name>
		<description>С 20 апреля YouTube начнёт постепенно отказываться от поддержки API v2 в пользу более современного API v3, из-за чего сервис прекратит работу на нескольких поколениях iOS-устройств, Smart TV и Blu-ray-плееров. Об этом сообщается в официальном блоге видеохостинга.</description>
		<active>1</active>
		<image_large></image_large>
		<image_small></image_small>
		<image_large_width></image_large_width>
		<image_large_height></image_large_height>
		<image_small_width></image_small_width>
		<image_small_height></image_small_height>
		<sorting>30</sorting>
		<ip>91.77.24.235</ip>
		<path>youtube-ischez-iz-starykh-ustroistv-apple</path>
		<indexing>1</indexing>
		<seo_title></seo_title>
		<seo_description></seo_description>
		<seo_keywords></seo_keywords>
		<siteuser_group_id>-1</siteuser_group_id>
		<showed>0</showed>
		<user_id>0</user_id>
		<siteuser_id>0</siteuser_id>
		<deleted>0</deleted>
		<url>/news/youtube-ischez-iz-starykh-ustroistv-apple/</url>
		<date>17.02.2016</date>
		<datetime>17.02.2016 22:33:35</datetime>
		<start_datetime>0000-00-00 00:00:00</start_datetime>
		<end_datetime>0000-00-00 00:00:00</end_datetime>
		<dir>/upload/information_system_15/1/5/3/item_153/</dir>
		<tag id="102">
			<tag_dir_id>0</tag_dir_id>
			<name>Apple</name>
			<path>Apple</path>
			<user_id>0</user_id>
			<description></description>
			<seo_title></seo_title>
			<seo_description></seo_description>
			<seo_keywords></seo_keywords>
			<urlencode>Apple</urlencode>
		</tag>
		<tag id="106">
			<tag_dir_id>0</tag_dir_id>
			<name>iOS</name>
			<path>iOS</path>
			<user_id>0</user_id>
			<description></description>
			<seo_title></seo_title>
			<seo_description></seo_description>
			<seo_keywords></seo_keywords>
			<urlencode>iOS</urlencode>
		</tag>
		<comments_count>0</comments_count>
		<comments_grade_sum>0</comments_grade_sum>
		<comments_grade_count>0</comments_grade_count>
		<comments_average_grade>0</comments_average_grade>
		<property_value id="18">
			<property_id>60</property_id>
			<entity_id>153</entity_id>
			<value>14</value>
			<property_dir_id>1</property_dir_id>
			<tag_name>string</tag_name>
		</property_value>
	</informationsystem_item>
	<informationsystem_item id="154">
		<informationsystem_id>15</informationsystem_id>
		<informationsystem_group_id>0</informationsystem_group_id>
		<shortcut_id>0</shortcut_id>
		<name>Nokia намерена вернуться на рынок в 2016 году</name>
		<description>Компания Nokia, чье мобильное подразделение было продано Microsoft в 2014 году, планирует вернуться на рынок телефонов уже в следующем году. Об этом сообщает портал Re/code со ссылкой на собственные источники.</description>
		<active>1</active>
		<image_large></image_large>
		<image_small></image_small>
		<image_large_width></image_large_width>
		<image_large_height></image_large_height>
		<image_small_width></image_small_width>
		<image_small_height></image_small_height>
		<sorting>30</sorting>
		<ip>91.77.24.235</ip>
		<path>nokia-namerena-vernutsia-na-rynok-v-2016-godu</path>
		<indexing>1</indexing>
		<seo_title></seo_title>
		<seo_description></seo_description>
		<seo_keywords></seo_keywords>
		<siteuser_group_id>-1</siteuser_group_id>
		<showed>0</showed>
		<user_id>0</user_id>
		<siteuser_id>0</siteuser_id>
		<deleted>0</deleted>
		<url>/news/nokia-namerena-vernutsia-na-rynok-v-2016-godu/</url>
		<date>17.02.2016</date>
		<datetime>17.02.2016 22:33:35</datetime>
		<start_datetime>0000-00-00 00:00:00</start_datetime>
		<end_datetime>0000-00-00 00:00:00</end_datetime>
		<dir>/upload/information_system_15/1/5/4/item_154/</dir>
		<tag id="107">
			<tag_dir_id>0</tag_dir_id>
			<name>Nokia</name>
			<path>Nokia</path>
			<user_id>0</user_id>
			<description></description>
			<seo_title></seo_title>
			<seo_description></seo_description>
			<seo_keywords></seo_keywords>
			<urlencode>Nokia</urlencode>
		</tag>
		<tag id="108">
			<tag_dir_id>0</tag_dir_id>
			<name>Microsoft</name>
			<path>Microsoft</path>
			<user_id>0</user_id>
			<description></description>
			<seo_title></seo_title>
			<seo_description></seo_description>
			<seo_keywords></seo_keywords>
			<urlencode>Microsoft</urlencode>
		</tag>
		<comments_count>0</comments_count>
		<comments_grade_sum>0</comments_grade_sum>
		<comments_grade_count>0</comments_grade_count>
		<comments_average_grade>0</comments_average_grade>
		<property_value id="19">
			<property_id>60</property_id>
			<entity_id>154</entity_id>
			<value>10</value>
			<property_dir_id>1</property_dir_id>
			<tag_name>string</tag_name>
		</property_value>
	</informationsystem_item>
</informationsystem>



Код XSL-шаблона:
Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:hostcms="http://www.hostcms.ru/"
	exclude-result-prefixes="hostcms">
	
	<xsl:output xmlns="http://www.w3.org/TR/xhtml1/strict" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" encoding="utf-8" indent="yes" method="html" omit-xml-declaration="no" version="1.0" media-type="text/xml"/>
	
	<!-- СписокЭлементовИнфосистемы -->
	
	<xsl:template match="/">
		<xsl:apply-templates select="/informationsystem"/>
	</xsl:template>
	
	<xsl:variable name="n" select="number(3)"/>
	
	<xsl:template match="/informationsystem">
		
		<div id="main">
			<h2>
				<span><xsl:value-of disable-output-escaping="yes" select="name"/></span>
			</h2>
			
			
				<xsl:variable name="img">
					<xsl:value-of disable-output-escaping="yes" select="informationsystem_item[image_large]/value"/>
				</xsl:variable>
				<div class="content-padding">
					<div class="article-promo">
						<div class="article-photo">
							<span class="article-image-out">
							<span class="image-comments"><span>21</span></span>
								<span class="article-image">
									<span class="nth1 strike-tooltip" title="Read Article">
									<a href="post.html"><i class="fa fa-eye"></i></a>
									</span>
									<span class="nth2 strike-tooltip" title="Save to read later">
									<a href="#"><i class="fa fa-plus"></i></a>
									</span>
									<a href="post.html"><img src="{$img}" alt="" title="" /></a>
									<a href="post.html"><img src="{./image_large}" alt="" title="" /></a>
								</span>
							</span>
						</div>

						<div class="article-content">
						<h3><a href="post.html">Perfecto vis, eum adipisci intel ne mea integre neglegentur no</a></h3>
							<div class="article-icons">
							<a href="user-single.html" class="user-tooltip"><i class="fa fa-fire"></i>datcouch</a>
							<a href="#"><i class="fa fa-calendar"></i>September 11, 2015</a>
							</div>
							<p>Has no atqui dictas iuvaret, ex suavitate voluptatum incorrupte eos. Nullam luptatum nominati ius voluptatum ea, nam omnium percipit et luptatum nominati ius ea...</p>
						<a href="post.html" class="defbutton"><i class="fa fa-reply"></i>Read full article</a>
						</div>
					</div>

					<div class="clear-float do-the-split"></div>

				</div>
			
		</div>
		
	</xsl:template>
</xsl:stylesheet>



Как мне вывести изображение? Ни один из вариантов в моем шаблоне не работает. Помогите найти ошибку.
...
Рейтинг: 0 / 0
XSL как отобразить изображение
    #39200818
Фотография Antonariy
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
1) какая-то муть в структуре шаблонов.
2) informationsystem_item[image_large]/value означает вытащить значение тега value у первого узла informationsystem_item, имеющего узел image_large.

полагаю, что-то в этом роде должно быть:

Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:hostcms="http://www.hostcms.ru/"
	exclude-result-prefixes="hostcms">

  <xsl:output xmlns="http://www.w3.org/TR/xhtml1/strict" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" encoding="utf-8" indent="yes" method="xml" omit-xml-declaration="no" version="1.0" media-type="text/xml"/>

  <!-- СписокЭлементовИнфосистемы -->

  <xsl:template match="/">
    <xsl:apply-templates select="informationsystem"/>
  </xsl:template>

  <xsl:template match="informationsystem">
    <div id="main">
      <h2>
        <span>
          <xsl:value-of disable-output-escaping="yes" select="name"/>
        </span>
      </h2>
      <xsl:apply-templates select="informationsystem_item"/>
    </div>
  </xsl:template>

  <xsl:template match="informationsystem_item">
      <div class="content-padding">
        <div class="article-promo">
          <div class="article-photo">
            <span class="article-image-out">
              <span class="image-comments"><span>21</span></span>
              <span class="article-image">
                <span class="nth1 strike-tooltip" title="Read Article">
                  <a href="post.html"><i class="fa fa-eye"></i></a>
                </span>
                <span class="nth2 strike-tooltip" title="Save to read later">
                  <a href="#"><i class="fa fa-plus"></i></a>
                </span>
                <a href="post.html"><img src="{image_small}" alt="" title="" /></a>
                <a href="post.html"><img src="{image_large}" alt="" title="" /></a>
              </span>
            </span>
          </div>
          <div class="article-content">
            <h3><a href="post.html">Perfecto vis, eum adipisci intel ne mea integre neglegentur no</a></h3>
            <div class="article-icons">
              <a href="user-single.html" class="user-tooltip"><i class="fa fa-fire"></i>datcouch</a>
              <a href="#"><i class="fa fa-calendar"></i>September 11, 2015</a>
            </div>
            <p>Has no atqui dictas iuvaret, ex suavitate voluptatum incorrupte eos. Nullam luptatum nominati ius voluptatum ea, nam omnium percipit et luptatum nominati ius ea...</p>
            <a href="post.html" class="defbutton"><i class="fa fa-reply"></i>Read full article</a>
          </div>
        </div>
        <div class="clear-float do-the-split"></div>
      </div>
  </xsl:template>
</xsl:stylesheet>



программирование наугад бесперспективно, читайте теорию.
...
Рейтинг: 0 / 0
XSL как отобразить изображение
    #39200847
fauster001
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Antonariy, спасибо. Изображение так и не появилось, зато в отладчике теперь видно, что стока совпадает с xml (<img src="information_items_180.jpg" alt="" title="">).
Читал информацию по документации HostCMS, в итоге, многое непонятно, как, например с этим случаем.
Что посоветуете почитать?
...
Рейтинг: 0 / 0
XSL как отобразить изображение
    #39200858
Фотография Antonariy
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
fauster001Antonariy, спасибо. Изображение так и не появилось, зато в отладчике теперь видно, что стока совпадает с xml (<img src="information_items_180.jpg" alt="" title="">).
Читал информацию по документации HostCMS, в итоге, многое непонятно, как, например с этим случаем.
Что посоветуете почитать? https://msdn.microsoft.com/en-us/library/ms256069(v=vs.110).aspx
https://msdn.microsoft.com/en-us/library/ms256115.aspx
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / XML, XSL, XPath, XQuery [игнор отключен] [закрыт для гостей] / XSL как отобразить изображение
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]