xsl-list
[Top] [All Lists]

Re: client side paging using XML, XSLT, and script from www.bayes.co.uk?

2005-08-05 03:54:09
Tempore 11:44:49, die 08/05/2005 AD, hinc in 
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Team 7 Projects 
Subscriptions <subscriptions(_at_)team7projects(_dot_)com>:

Thanx, for the info. I actually just discovered that now. But now I am
struggling to send the raw XML to my client with the href for my stylesheet.
:( Sorry, I am not very good at XSLT. So if you of a way for me to do this,
please let me know. I am trying to use <xsl:output method="xml"/> ....

The xslt is perfectly fine, you need no adaptions there.

It's the ASP code you have to adapt: remove the transformation bit.
I'll make some indications of how it could be changed (note that I don't know a 
iota of ASP)

-original:
System.IO.StringReader strReader = new System.IO.StringReader(xmlData);
xpathDoc = new XPathDocument(strReader); XslTransform transform = new
XslTransform(); transform.Load(Server.MapPath("results_page.xslt"));
transform.Transform(xpathDoc,null,Response.Output,new XmlUrlResolver());

-new:
System.IO.StringReader strReader = new System.IO.StringReader(xmlData);
Response.Output.Write('<?xml-stylesheet type="text/xsl" 
href="results_page.xslt"?>');
Response.Output.Write(strReader);


regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Spread the wiki (http://www.wikipedia.org)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>