-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_getschemas.xsl
More file actions
37 lines (29 loc) · 948 Bytes
/
setup_getschemas.xsl
File metadata and controls
37 lines (29 loc) · 948 Bytes
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
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"
version="1.0"
encoding="utf-8"/>
<xsl:variable name="nl"><xsl:text>
</xsl:text>
</xsl:variable>
<!-- <xsl:variable name="tab" select="'	'" /> -->
<xsl:variable name="tab" select="'	'" />
<xsl:param name="schemafile" />
<xsl:template match="/">
<xsl:apply-templates select="schemalist/schema" />
</xsl:template>
<xsl:template match="schema">
<xsl:variable name="loctype">
<xsl:choose>
<xsl:when test="@path">f</xsl:when>
<xsl:otherwise>r</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="concat(@id, $tab, $schemafile, $tab, $loctype, $nl)" />
</xsl:template>
<xsl:template match="schema_test">
<xsl:value-of select="concat(@id,$nl)" />
</xsl:template>
</xsl:stylesheet>