Jump to content

shulin

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About shulin

  • Rank
    Newbie
  1. Suppose I have an xml file looks like:<components> <component> <name> PC1</name> <property> HP </property> <component> <name> OS </name> <property> WinXP<property> </component> </component> <component> <name> PC2</name> <property> HP </property> <component> <name> OS </name> <property> Linux<property> </component> </component></components>Is it possible to write an XSLT to convert this into 4 HTML files, one for PC1, one for OS on PC1, one for PC2 and one for OS on PC2? That is, each <component> tag maps to an HTML file?Also I would like to organize the file as:components/PC1.htmcomponents/PC1/OS.htmcomponents/PC2.htmcomponents/PC2/OS.htmA sample code is highly appreciated.shu-lin
  2. shulin

    how do I do this

    Hi:many thanks.I looked at the source code for the webpage, still don't quite understand how images are swapped.For example, <li> <a href="?do=archives" title="">picture 1</a> </li>above line creates a hyperlink labeled as "picture 1". When the link is clicked, what happens?I am new to HTML . Sorry to bother you so muchshu-lin
  3. shulin

    how do I do this

    Do you have have sample code that I reference?Thanks
  4. Hi:I want to partition my webpage into two (2) vertical frames "Menu" and "Detailed Information".Items are listed in the Menu frame and when an item is clicked its detail information is displayed in the "Detailed Information" frame.All the examples I found so far require me to create a few seperate HTML files, one for each frame at least. Is it possible to do this with only ONE single HTML file?An example is show below (PC is selected for display:MENU | Detailed Information------------------------------------------------PC | Name:PCNIC | Brand:HPOS | Model: xxxxx---------------------------------------------------User can then click NIC to display another set of information. Scroll bar is enabled.Is it possible to do this with only ONE HTML file?Thanks.shu-lin
  5. Hi :I would like to display the following on my webpage:+ A+ BWhen I click on "+" in front of A, it would expand into:- A +A1 +A2 and so on. Also I can collapse them by clicking "-" in front of AThanks.shu-lin
  6. Hi:Suppose I have an XML like this:<root> <element A> <element A1> <\elementA1> <element A2> <elementA21> <\elementA21> .... <elemntA210> <\elementA210> <\element A2> <\element A> <element B> <element B1> ... <\element B1> <element B2> ... <element B2> <\element B> <\root>I would to display them on IE as:+A+BWhen I click on + in front of A it will expand into:- A + A1 +A2+BAnd I can expand A1 and A2 further or collapse them accordingly.How do I do it using XSLT?Thanks.shu-lin
  7. <?xml version="1.0" encoding="utf-8"?><xs:schema id="NewSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="elements"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="1000" name="component"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="1000" name="attribute"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="1000" name="name" type="xs:string" /> <xs:element maxOccurs="1000" name="value" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element minOccurs="0" maxOccurs="1000" ref="component" /> <----------HERE </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element></xs:schema>Hi:Could sb help me with the above XSD? I create it using XMLFOX and I keep on getting error msg:Line 18, the "component" element is not declared.But I think I declared it at line 6.Your help is highly appreciated.shu-lin
  8. Hi: For the following XML , how do I write an XSD?<networknode> <configparam> ... <\configparam> <networknode> <configparam> ... <\configparam> <configparam> ... <\configparam> <networknode> <configparam> ... <\configparam> <configparam> ... <\configparam> <\networknode> <\networknode><\networknode>That is, the same name <networknode> is used for both parents and children.Thanks.shu-lin
×
×
  • Create New...