Hi
I am a newbie to XSLT.
I have got a xml file
of the kind
Code:
<layout>
<frameset>
<frame name="headerFrame" src="" size="200" resize="no"></frame>
<frame name="menuFrame" src="" size="700" resize="no"></frame>
.
.
</frameset>
</layout>
and i want to convert it to a html using a xsl file
i wrote a xsl:
Code:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
<xsl:template match="/">
<html>
<head><title>Samsung OAMP</title></head>
<frameset rows="200,700">
<xsl:for-each select="layout/frameset/frame">
<frame name="{@name}" src="{@src}" noresize="{@resize}"></frame>
</xsl:for-each>
</frameset>
</html>
</xsl:template>
</xsl:stylesheet>
problem is i am not succeeding without hardcoding the line
<frameset rows="200,700">
i want the rows/cols and sizes to be selected as in xml file
Any help will be appreciated.
well number of nodes is not large there will be only 4 frames
but might be organized in difft. difft. way