Heading
int main () {
Assign to
variable:
}
The code is below
Thanks in advance
James Rayner
XML/XSL CODE
Code problem.xml
<?xml version="1.0"
encoding="UTF-8"?>
<?xml-stylesheet href="problem.xsl"
type="text/xsl"?>
<cpp>
<name
value="Heading"></name>
<f name="main" type="int" >
Assign to
variable:
<!-- Tag below won't
display -->
<v name="hello" type="string"
/>
</f>
</cpp>
Code problem.xsl
<?xml version="1.0"
encoding="UTF-8"?>
<xsl:template
match="/">
<html>
<body><font face="courier
new">
<p>
<xsl:apply-templates select="//cpp"
/>
</p>
</font>
</body>
</html>
</xsl:template>
<!-- <name
/> -->
<xsl:template
match="name">
<h2>
<xsl:value-of select="@value"
/>
</h2>
</xsl:template>
<!-- <v />
-->
<xsl:template match="v">
<font face="courier new"
color="red">
<h5><xsl:value-of select="@types"
/>[<xsl:value-of select="@names"
/>]</h5>
</font>
</xsl:template>
<!-- <f />
-->
<xsl:template match="f">
<h5><font
face="courier new" color="#d500ee">
<xsl:value-of select="@type"
/> <xsl:value-of select="@name"
/> (<xsl:value-of select="@param"
/>) </font>{
<br /><xsl:value-of select="."
/><br />}
</h5>
</xsl:template>
</xsl:stylesheet>
End Code