resolved some minor changes
This commit is contained in:
parent
7b9001e478
commit
6f99dd6a51
|
@ -0,0 +1,29 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE stylesheet [<!ENTITY nbsp "<xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>">]>
|
||||||
|
|
||||||
|
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
|
|
||||||
|
<xsl:output doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||||
|
encoding="utf-8" indent="yes" method="html"/>
|
||||||
|
|
||||||
|
<xsl:template match="/">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Sample xml transformation</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<xsl:for-each select="/letter">
|
||||||
|
<div>
|
||||||
|
<div><xsl:value-of select="./title"/></div>
|
||||||
|
<div><xsl:value-of select="./salutation"/></div>
|
||||||
|
<div><xsl:value-of select="./text"/></div>
|
||||||
|
<div><xsl:value-of select="./greetings"/></div>
|
||||||
|
<div><xsl:value-of select="./signature"/></div>
|
||||||
|
<div><xsl:value-of select="./address"/></div>
|
||||||
|
</div>
|
||||||
|
</xsl:for-each>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
</xsl:template>
|
||||||
|
</xsl:stylesheet>
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE stylesheet [<!ENTITY nbsp "<xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>">]>
|
||||||
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
|
||||||
|
<xsl:output method="html" indent="yes" encoding="utf-8" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
|
||||||
|
<xsl:template match="/">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Sample xml transformation</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<xsl:for-each select="/letter">
|
||||||
|
<div><div><xsl:value-of select="./title" /></div>
|
||||||
|
<div><xsl:value-of select="./salutation" /></div>
|
||||||
|
<div><xsl:value-of select="./text" /></div>
|
||||||
|
<div><xsl:value-of select="./greetings" /></div>
|
||||||
|
<div><xsl:value-of select="./signature" /></div>
|
||||||
|
<div><xsl:value-of select="./address" /></div></div>
|
||||||
|
</xsl:for-each>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
</xsl:template>
|
||||||
|
</xsl:stylesheet>
|
|
@ -9,7 +9,7 @@ module.exports = {
|
||||||
Supported Grammars
|
Supported Grammars
|
||||||
###
|
###
|
||||||
grammars: [
|
grammars: [
|
||||||
"XML", "XSD", "XSL"
|
"XML"
|
||||||
]
|
]
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
Loading…
Reference in New Issue