-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathIDS_list.xsl
More file actions
30 lines (27 loc) · 998 Bytes
/
IDS_list.xsl
File metadata and controls
30 lines (27 loc) · 998 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
<!-- Generating Matlab code structs from IDSDefs.xml YB.MA Feb 2008 -->
<!-- -->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
xmlns:my="dummy"
version="2.0">
<!-- -->
<xsl:output method="text"/>
<xsl:template match = "/IDSs">
<xsl:result-document href="matlab/IDS_list.m" method="text">
<xsl:text>function out = IDS_list
</xsl:text>
<xsl:text>% Return the list of existing IDSs
</xsl:text>
<xsl:text>% This file was generated automatically
</xsl:text>
<xsl:text>
</xsl:text>
<xsl:text>out = {
</xsl:text>
<xsl:apply-templates select = "IDS"/>
<xsl:text>};
</xsl:text>
</xsl:result-document>
</xsl:template>
<xsl:template match = "IDS">
<xsl:text>'</xsl:text>
<xsl:value-of select = "@name"/>
<xsl:text>';...
</xsl:text>
</xsl:template>
</xsl:stylesheet>