OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Problem on XML+XSL

[ Lists Home | Date Index | Thread Index ]
  • From: taherkordy@dpi2.dpi.net.ir
  • To: xml-dev@lists.xml.org
  • Date: Fri, 04 Jun 1999 10:42:56 +0330

     I have some problems in writing XSL stylesheets.
     Suppose we have the following XML file(book.xml) that is
     extracted from the Book Table:
        <?xml version="1.0"?>
                <title> Computer Networks </title>
                <category_id> 2 </category_id>
     I also have a Parameters table and have extracted values
     for "category" parameter as follows(parameter.xml):
        <?xml version="1.0"?>
                        <category_item id="1">Art</category_item>
                        <category_item id="2">Computer</category_item>
                        <category_item id="3">Physics</category_item>
     I want to have the following Html file as the result of
     merging two XML files and an XSL file(what that I want to help me):
     Title :          
        <INPUT TYPE='text' NAME='txtTitle' VALUE="Computer Networks" >
        <SELECT NAME="category" SIZE=1> 
                <OPTION value='1'>Art
                <OPTION value='2' SELECTED>Computer
                <OPTION value='3'>Physics
     I have two quietions :
     1. I think that when reading from Book and Parameter
        table, I should make an XML file that have information about
        books and categrory parameters togother.
        Such as following XML:
        <?xml version="1.0"?>
                <title> Computer Networks </title>
                        <category_item >
                        </category item>
                        <category_item >
                        </category item>
                        <category_item >
                        </category item>
       I want to know that Is it right this idea ?
     2. I want to  write an XSL stylesheet for producing this HTML file
        that automatically selects "computer" option in category Combobox
        based on value of "category_id" in book.xml and "id"
        attribute in parameter.xml  
        Could you please help me for writing this XSL , 
        I'm new to XSL ? (I use LotusXSL parser) 
     Best Regards,


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS