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

RE: ASP, XSL, XML QUESTION

Subject: RE: ASP, XSL, XML QUESTION
From: Henk Meulekamp <henkm@xxxxxxx>
Date: Wed, 27 Mar 2002 08:41:49 +0100
asp xsl xml

Here a quick link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/
xsl_interactive_5fuc.asp
XML and dataisland.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/
xsl_interactive_0037.asp

The last link is an example made by microsoft which does something similar.



-----Original Message-----
From: Meiyu Lin [mailto:MeiyuL@xxxxxxxxxxx] 
Sent: woensdag 27 maart 2002 03:27
To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
Subject:  ASP, XSL, XML QUESTION


Can anyone help on the following question?
I have some xml files, have the following data:
File1:
<library>
    <book category="fiction">
       <author>J.K.Rowling</author>
        <title>Harry Potter and the Philosopher's Stone</title>
        <publisher>Bloomsbury</publisher>
        <ISBN>0747532745</ISBN>
    </book>
    <book category="non-fiction">
        <author>Julian Cope</author>
        <title>The Modern Antiquarian</title>
        <publisher>Thorsons</publisher>
        <ISBN>0722535996</ISBN>
    </book>
    <book category="humor">
        <author>Peter Blegvad</author>
        <title>The Book of Leviathan</title>
        <publisher>Sort Of</publisher>
        <ISBN>0953522725</ISBN>
    </book>
</library>
 
File2, File3 also has the different books info.
 
  <textarea ID="BookEdit" class="BookNameEditDesc" rows='4'>
  <xsl:value-of select="book"/></textarea><br />
the above xsl will give the following output::
 

 
when user click on the > or < button, this will move to display next
/Previous book.
 
The following asp page code will load the file:
The ModifyFName is dynamic, its depends on the user click from the previous
page
 
So I can't use <XML ID="booksDoc" SRC=" ModifyFName.xml" ></XML>
 
<%
// Load the project XML 
xmlDoc = Server.CreateObject("Microsoft.XMLDOM");
xmlDoc.async = false;
xmlDoc.load(modifyFName);
 
// Load the Modify Project XSL
var styleFile = Server.MapPath("ModifyProject.xsl");
xslDoc = Server.CreateObject("Microsoft.XMLDOM");
xslDoc.async = false;
xslDoc.load(styleFile);
 
result = xmlDoc.transformNode(xslDoc);
Response.Write(result);
%>
 
in my xsl I use:
<xsl:value-of select="book"/></textarea><br />
 
I can get the first book, but how can I put next book to an array in xsl
when user click so I can move to next book?
 
Thank you for your help.
 
 
Meiyu Lin
Phone: (425) 519-5211
http://www.bsquare.com
 

 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-2011 All Rights Reserved.