Merge remote-tracking branch 'origin/6.1'
[scilab.git] / scilab / modules / functions / xml / gateway5-convert.xsl
1 <?xml version="1.0"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3     <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-system="../../functions/xml/gateway.dtd"/>
4     <xsl:template match="/">
5         <xsl:comment>
6             /*
7             *  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
8             *  Copyright (C) 2014 - Scilab Enterprises - Clement DAVID
9             *
10             * Copyright (C) 2012 - 2016 - Scilab Enterprises
11             *
12             * This file is hereby licensed under the terms of the GNU GPL v2.0,
13             * pursuant to article 5.3.4 of the CeCILL v.2.1.
14             * This file was originally licensed under the terms of the CeCILL v2.1,
15             * and continues to be available under such terms.
16             * For more information, see the COPYING file which you should have received
17             * along with this program.
18             *
19             */
20             Scilab
21             Interface description. In this file, we define the list of the function which
22             will be available into Scilab and the link to the "native" function.
23             
24             Don't touch if you do not know what you are doing !
25         </xsl:comment>
26         
27         <module>
28             <xsl:attribute name="name">
29                 <xsl:value-of select="GATEWAY/@name" />
30             </xsl:attribute>
31             
32             <xsl:for-each select="GATEWAY/PRIMITIVE">
33                 <gateway type="0">
34                     <xsl:attribute name="name">
35                         <xsl:value-of select="concat('sci_', @primitiveName)" />
36                     </xsl:attribute>
37                     <xsl:attribute name="function">
38                         <xsl:value-of select="@primitiveName" />
39                     </xsl:attribute>
40                     <xsl:attribute name="type">0</xsl:attribute>
41                 </gateway>
42             </xsl:for-each>
43         </module>
44     </xsl:template>
45     
46 </xsl:stylesheet>
47