Ik probeer een XSL te maken die van een gegeven XML file een juiste HTML output maakt
Dit is mijn XML file
En dit is mijn XSL file..
Nou zit de fout in het feit dat het style stukje niet wil dat er brackets in staan.
Is er een manier om dit op te lossen of om hier omheen te programmeren.
Dit is mijn XML file
code:
1
2
3
4
5
6
7
8
| <?xml version="1.0" encoding="UTF-8"?> <Button> <Caption>Hello World</Caption> <Heigth>38</Heigth> <Top>10</Top> <Width>77</Width> <Left>10</Left> </Button> |
En dit is mijn XSL file..
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xalan="http://xml.apache.org/xslt">
<xsl:template match="Button">
<INPUT id="Save"
style="Z-INDEX: 163;
POSITION: absolute;
LEFT: <xsl:value-of select="Left"/>px;
WIDTH: <xsl:value-of select="Width"/>px;
TOP: <xsl:value-of select="Top"/>px;
HEIGHT:<xsl:value-of select="Heigth"/>px"
Type="button" value="<xsl:value-of select="Caption"/>" name="Button1"
size="38">
</INPUT>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet> |
Nou zit de fout in het feit dat het style stukje niet wil dat er brackets in staan.
Is er een manier om dit op te lossen of om hier omheen te programmeren.
[ Voor 92% gewijzigd door McVirusS op 11-06-2003 11:32 ]