[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Heeeeeeeeelp

Subject: RE: Heeeeeeeeelp
From: "Friedlander, Hal" <Hal@xxxxxxxxxxxxxx>
Date: Wed, 2 Aug 2000 11:40:34 -0400
xml faq_list
" I want to create a list of FAQ's with their respective anwers in XML.
They"


USE THIS XSL
<?xml version="1.0"?>
<HTML xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<BODY>
<TABLE BORDER="2">
<xsl:for-each select="FAQ_LIST/FAQ">
<TR><TD>Q:<a href="somelink.html"><xsl:value-of
select="QUESTION"/></a></TD></TR>
<TR><TD>A:<a href="somelink.html"><xsl:value-of
select="ANSWER"/></a></TD></TR>
</xsl:for-each>

</TABLE>
</BODY>
</HTML>


USE THIS XML
<?xml-stylesheet type="text/xsl" href="faq.xsl" ?>
<FAQ_LIST>
<FAQ>
<QUESTION Bookmark="1">This is the Question 1</QUESTION>
<ANSWER>This is the Answer 1</ANSWER>
</FAQ>
<FAQ>
<QUESTION Bookmark="2">This is the Question 2</QUESTION>
<ANSWER>This is the Answer 2</ANSWER>
</FAQ>
<FAQ>
<QUESTION Bookmark="3">This is the Question 3</QUESTION>
<ANSWER>This is the Answer 3</ANSWER>
</FAQ>
</FAQ_LIST>


You can strip out or replace any HTML tags in the XSL doc, as long as it
remains well formed (all tags closed, limit nesting tags). You can delete
the XSL ref in the XML doc if you are using another method of applying the
XSL.

Hope this helps.

-Hal

-----Original Message-----
From: Rohit Peyyeti [mailto:rohit@xxxxxxxxxxxxxxxxx]
Sent: Wednesday, August 02, 2000 9:31 AM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Heeeeeeeeelp
Importance: High



Can anyone please help. I need some solution to this immediately as I have
to meet some urgent deadlines.

Any Idea how I can achieve this:

1) I want to create a list of FAQ's with their respective anwers in XML.
They
    appear like this in XML:

     <FAQ_LIST>
      <FAQ>
       <QUESTION Bookmark="1">This is the Question 1</QUESTION>
       <ANSWER>This is the Answer 1</ANSWER>
      </FAQ>
      <FAQ>
       <QUESTION Bookmark="2">This is the Question 2</QUESTION>
       <ANSWER>This is the Answer 2</ANSWER>
      </FAQ>
      <FAQ>
       <QUESTION Bookmark="3">This is the Question 3</QUESTION>
       <ANSWER>This is the Answer 3</ANSWER>
      </FAQ>
     </FAQ_LIST>

     This is how I like it should appear in the browser when I apply the
      XSL file:

      Q: This is the Question 1
      Q: This is the Question 2
      Q: This is the Question 3
      Q: This is the Question 4

      Note: Each question is a Hyperlink (bookmark) referring into the
      same page (Answers). I still don't know how to create bookmarks
      in XML too


      Q: This is the Question 1
      A: This is the Answer 1

      Q: This is the Question 2
      A: This is the Answer 2

      Q: This is the Question 3
      A: This is the Answer 3

This is the END of my first query. Second one is how to I enable
<HTML> tags between my <XML> tags. How do I tell my XSL that
there can be <HTML> tags like <p>, <table> etc. etc. between
XML?

...Rohit






 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.