[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Heeeeeeeeelp
Simple, in principle: <xsl:for-each select="FAQ"> <p><a href="#{generate-id(.)}">Q: <xsl:value-of select="question"></a></p> </xsl:for-each> <xsl:for-each select="FAQ"> <p><a name="{generate-id(.)}"/>Q: <xsl:value-of select="question"></p> <p>A: <xsl:value-of select="answer"></p> </xsl:for-each> Mike Kay > -----Original Message----- > From: Rohit Peyyeti [mailto:rohit@xxxxxxxxxxxxxxxxx] > Sent: 02 August 2000 14:31 > 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|