Revision 46368
Added by Alessia Bardi about 7 years ago
cidoc_2_document.xslt | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
version="2.0" |
|
5 |
> |
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" |
|
4 |
xmlns:crm="http://www.cidoc-crm.org/cidoc-crm/"> |
|
6 | 5 |
|
7 | 6 |
<xsl:output method="html" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/> |
8 | 7 |
|
... | ... | |
14 | 13 |
<div class="col-xs-10"> |
15 | 14 |
<xsl:if test="//*[local-name()='title']"> |
16 | 15 |
<h1 id="overview"> |
17 |
<xsl:value-of select="//*[local-name()='title']"/>
|
|
16 |
<xsl:value-of select="/crm:P102_has_title"/>
|
|
18 | 17 |
</h1> |
19 | 18 |
</xsl:if> |
20 | 19 |
</div> |
... | ... | |
44 | 43 |
<strong>Title</strong> |
45 | 44 |
</td> |
46 | 45 |
<td> |
47 |
<xsl:for-each select="//*[local-name()='title']">
|
|
46 |
<xsl:for-each select="//crm:P102_has_title">
|
|
48 | 47 |
<xsl:value-of select="."/> |
49 | 48 |
<br/> |
50 | 49 |
</xsl:for-each> |
... | ... | |
55 | 54 |
<strong>Description</strong> |
56 | 55 |
</td> |
57 | 56 |
<td> |
58 |
<xsl:for-each select="//*[local-name()='description']">
|
|
57 |
<xsl:for-each select="//crm:P3_has_note">
|
|
59 | 58 |
<xsl:value-of select="."/> |
60 | 59 |
<br/> |
61 | 60 |
</xsl:for-each> |
... | ... | |
63 | 62 |
</tr> |
64 | 63 |
<tr> |
65 | 64 |
<td class="col-xs-3"> |
66 |
<strong>Identifier</strong> |
|
65 |
<strong>Identifiers</strong>
|
|
67 | 66 |
</td> |
68 | 67 |
<td> |
69 |
<xsl:for-each select="//*[local-name()='identifier']">
|
|
68 |
<xsl:for-each select="//crm:P1_is_identified_by">
|
|
70 | 69 |
<xsl:value-of select="."/> |
71 | 70 |
<br/> |
72 | 71 |
</xsl:for-each> |
... | ... | |
91 | 90 |
<xsl:for-each select="//*[local-name()='record']"> |
92 | 91 |
<h6> |
93 | 92 |
<span class="glyphicon glyphicon-wrench"/> |
94 |
RECORD XML
|
|
93 |
INDEXED RECORD
|
|
95 | 94 |
</h6> |
96 | 95 |
<xsl:call-template name="xmlItem"> |
97 | 96 |
<xsl:with-param name="indent" select="string('')"/> |
... | ... | |
109 | 108 |
|
110 | 109 |
<xsl:template name="xmlItem"> |
111 | 110 |
<xsl:param name="indent"/> |
112 |
<xsl:variable name="tag" select="local-name()"/>
|
|
111 |
<xsl:variable name="tag" select="name()"/> |
|
113 | 112 |
<xsl:variable name="newindent"><xsl:value-of select="$indent"/>     |
114 | 113 |
</xsl:variable> |
115 | 114 |
|
Also available in: Unified diff
a minimal working light-ui