View Single Post
  #1 (permalink)  
Old May 30th, 2005, 07:05 AM
its_vippy its_vippy is offline
Registered User
Join Date: May 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to its_vippy
Default problem while converting xml to html

I am a newbie to XSLT.
I have got a xml file
of the kind

        <frame name="headerFrame" src="" size="200" resize="no"></frame>
        <frame name="menuFrame" src="" size="700" resize="no"></frame>
and i want to convert it to a html using a xsl file
i wrote a xsl:
<xsl:stylesheet version="1.0"
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
<xsl:template match="/">
    <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>         

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

Reply With Quote