aboutsummaryrefslogtreecommitdiffstats
path: root/src/codegen/propmaker.xsl
blob: 549693b14ad3aeaa9efc16405ceb5d2b82d398f7 (plain)
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
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:lxslt="http://xml.apache.org/xslt"
                xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
                extension-element-prefixes="redirect">

<xsl:import href="elements.xsl"/>

<xsl:output method="xml" />

<xsl:template match="elements">
<property-list>
<xsl:attribute name="family">
<xsl:call-template name="capall"><xsl:with-param name="str" select="$prefixVal"/></xsl:call-template>
</xsl:attribute>
  <generic-property-list>
    <xsl:apply-templates select="*//attribute"/>
 </generic-property-list>
</property-list>
</xsl:template>

<xsl:template match="*//attribute">
  <property>
	<name><xsl:apply-templates/></name>
    <use-generic ispropclass="true">SVGStringProperty</use-generic>
  </property>
</xsl:template>


</xsl:stylesheet>