2
<?xml version="1.0" encoding="utf-8"?>
<page>
<tab dim="30">
<column>
</column>
<column>
</column>
</tab>
<tab dim="70">
</tab>
</page>
樣式表:
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text>
<html>
<head>
</head>
<body>
<xsl:for-each select="tab">
<div class="tab">tab</div>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
生產本
<!DOCTYPE html><html><head></head><body></body></html>
我想這個
<!DOCTYPE html><html><head></head><body><div class="tab">tab</div><div class="tab">tab</div></body></html>