Hi to all.
I have a.XSL file as following:
and have b.XML file:
When I am starting b.XML everything working perfect but only in MSIE.
In this case, my stylesheet (a.XSL) has the function of both: stylesheet and template and seems to me that it is wrong. If I want to have:
- file a - as data container (xml?)
- file b - as stylesheet (xsl?) - styles only
- file c - displaying file (html or xhtml?)
how I can make all of that it?
Or, in XML stylesheet HAS the template function?
Also, I can't add META tags but need them.
Thanks in advance,
Alex
I have a.XSL file as following:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<html xsl:version="1.0"
xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL]
xmlns="[URL unfurl="true"]http://www.w3.org/TR/xhtml1/strict">[/URL]
<TITLE>Index -- My text here</TITLE>
<link rel="stylesheet" href="some.css" type="text/css" />
<body>
<h1>My Heading</h1>
<p><small>My comment</small></p>
<hr />
<xsl:for-each select="mother/child">
<xsl:value-of select="subchild_1"/>
<xsl:value-of select="subchild_2"/>
<xsl:value-of select="subchild_2"/>
</xsl:for-each>
</body>
</html>
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="a.XSL" ?>
<mother>
<child>
<subchild_1>Data 1</subchild_1> <br />
<subchild_2>Data 2</subchild_2> <br />
<subchild_3>Data 3</subchild_3> <br />
</child>
<child>
<subchild_1>Data 11</subchild_1> <br />
<subchild_2>Data 12</subchild_2> <br />
<subchild_3>Data 13</subchild_3> <br />
</child>
</mother>
In this case, my stylesheet (a.XSL) has the function of both: stylesheet and template and seems to me that it is wrong. If I want to have:
- file a - as data container (xml?)
- file b - as stylesheet (xsl?) - styles only
- file c - displaying file (html or xhtml?)
how I can make all of that it?
Or, in XML stylesheet HAS the template function?
Also, I can't add META tags but need them.
Thanks in advance,
Alex