Revision 52139
Added by Alessia Bardi over 6 years ago
modules/dnet-modular-mdstore-ui/trunk/src/main/resources/eu/dnetlib/functionality/modular/ui/xslt/gmf2document.xslt | ||
---|---|---|
4 | 4 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" |
5 | 5 |
xmlns:fn="http://www.w3.org/2005/xpath-functions"> |
6 | 6 |
|
7 |
<xsl:output method="html" encoding="UTF-8" indent="yes" |
|
8 |
omit-xml-declaration="yes" /> |
|
7 |
<xsl:output method="html" encoding="UTF-8" indent="yes" omit-xml-declaration="yes" /> |
|
9 | 8 |
|
10 | 9 |
<xsl:template match="/"> |
11 | 10 |
<p |
... | ... | |
20 | 19 |
|
21 | 20 |
<xsl:template name="xmlAttr"> |
22 | 21 |
<span style='color:blue'> |
23 |
<xsl:value-of select="concat(' ', local-name())" />
|
|
22 |
<xsl:value-of select="concat(' ', name())" /> |
|
24 | 23 |
</span> |
25 | 24 |
<span style='color:red'> |
26 | 25 |
<xsl:value-of select="concat('="', ., '"')" /> |
... | ... | |
31 | 30 |
<xsl:template name="xmlItem"> |
32 | 31 |
<xsl:param name="indent" /> |
33 | 32 |
|
34 |
<xsl:variable name="tag" select="local-name()" />
|
|
33 |
<xsl:variable name="tag" select="name()" /> |
|
35 | 34 |
|
36 | 35 |
<xsl:variable name="newindent"> |
37 | 36 |
<xsl:value-of select="$indent" /> |
Also available in: Unified diff
using name() instaed of local-name()