The only issue I have with below is that I need to be able to pass in HTML. My page has been marked up semantically using hAtom(http://microformats.org/wiki/hatom).
I want to be able to run the page through XSLT using this XSL file (http://rbach.priv.at/hAtom2Atom/) and I want it to be able to have the functionality of this convertor (http://lukearno.com/projects/hatom2atom/) I notice that the content types are : application/xml text/xml application/atom+xml Does your plugin support changing headers, looks like either text/xml or application/atom+xml might be my best chance. Tane On 12/7/06, Briz <[EMAIL PROTECTED]> wrote: > Hi there. I've been out for a while and just checked in on the thread. I > think I've worked out why you're getting errors. > > First: > Download the latest jquery.xslTransform http://jquery.glyphix.com/ . There > was a recent update to Sarissa which we've included in the latest download. > > Second: > Make sure you have all included xsl stylesheets. hAtom2Atom.xsl includes > uri.xsl. Download it and place it in the same directory as hAtom2Atom.xsl. > > Third: > When I run it, I get an error on line 156 of the XSLT stylesheet, which is > "ERROR: Invalid fragment". It basically means that the stylesheet couldn't > find any feeds. Which means you need to use a real Atom-formatted XML file > instead of your home page. > > Also, I'd recommend changing your jquery code to this: > $(document).ready(function(){ > $("a.atom").click(function(){ > $(this).getTransform("misc/hAtom2Atom.xsl","whatever-your-atom-feed-is.xml > "); > }); > }); > Good luck. > > > > On 12/6/06, Briz <[EMAIL PROTECTED]> wrote: > > Have you tried running the example file? If not, try it. It's in the > "example" directory ... here it is on our server: > http://jquery.glyphix.com/jquery.xslTransform/example/ > > > > If you have, does it work? > > > > One more thing to try is using jquery.xslTransform.js instead of > jquery.xslTransform.packed.js > > > > > > > > > > > > On 12/6/06, digital spaghetti <[EMAIL PROTECTED]> wrote: > > > Hey, > > > > > > I managed to get this plugin installed, but at the moment it's not > > > working, I've posted the output from firebug in a previous email. I'm > > > thinking it's because the page is being served as text/html - but my > > > knowledge isn't that great on headers and I don't know what I need to > > > do to change the header when my transform link is clicked. > > > > > > If you go to http://digitalspaghetti.me.uk and click on the hAtom > > > button on the left, you can see the error I get. > > > > > > Tane > > > > > > On 12/6/06, Briz < [EMAIL PROTECTED]> wrote: > > > > Hi there. > > > > > > > > The xslTransform plugin doesn't require a server at all. It does > require a > > > > browser with an XSLT engine built into it, though. Firefox and IE do, > Opera > > > > has a limited one, and Safari has a very limited one. > > > > > > > > Short story: if you're using Firefox or IE6/7, you can do XSL > > > > transformations without installing anything at all on the server. > > > > > > > > > > > > On 12/6/06, Gavin M. Roy < [EMAIL PROTECTED]> wrote: > > > > > ---------- Forwarded message ---------- > > > > > From: digital spaghetti <[EMAIL PROTECTED]> > > > > > Date: Dec 6, 2006 12:10 AM > > > > > Subject: Re: [jQuery] Two new jQuery plugins: jquery.xslTransform > and > > > > > jquery.debug > > > > > To: "jQuery Discussion." <[email protected] > > > > > > > > > > > > > > > > Hi there, > > > > > > > > > > Currently mobile at the moment, so a quick question. Does the > jQuery > > > > > XSL plugin require an XSLT engine on the server, or is it doing the > > > > > browser? > > > > > > > > > > I'm looking at XSLT for use with microformats so I can do > conversions > > > > > on formats like hcard to vcard or hatom to atom feed, and at the > > > > > moment I am using rather slow and patchy 3rd party services for > this, > > > > > and I can't install any XSLT engines on my server. > > > > > > > > > > Also love the sound of the debug script. Firebug is an excellnt > > > > > application and this plugin looks like it may be the perfect > > > > > complement to it. I'll give it a try at work today :) > > > > > > > > > > Tane > > > > > http://digitalspaghetti.me.uk > > > > > > > > > > On 12/6/06, Gavin M. Roy < [EMAIL PROTECTED] > wrote: > > > > > > Glyphix (http://www.glyphix.com) has released two more plugins > under > > > > > > the MIT license: > > > > > > > > > > > > jQuery.xslTransform and jQuery.debug > > > > > > > > > > > > jQuery.xslTransform is a jQuery wrapper for Sarissa, providing the > > > > > > ability to replace any element on the page with the results from > an > > > > > > XSL transformation of an XML document inside the browser on the > fly > > > > > > (no server required). For example: > > > > > > > > > > > $('your-selector-here').getTransform('path-to-xsl.xsl','path-to-xml.xml');. > > > > > > > > > > > > jQuery.debug is freedom from that [EMAIL PROTECTED]@#$!!! alert() > function. > > > > > > If you're using Firefox with the Firebug extension installed, this > > > > > > plugin writes log items to Firebug's console. If Firebug is not > > > > > > installed, this plugin creates a div and writes log items to a > list > > > > > > inside it. For example: $.log('hello world'); or > > > > > > $('your-selector-here').debug();. > > > > > > > > > > > > Both are available at http://jQuery.glyphix.com > > > > > > > > > > > > Gavin > > > > > > > > > > > > _______________________________________________ > > > > > > jQuery mailing list > > > > > > [email protected] > > > > > > http://jquery.com/discuss/ > > > > > > > > > > > > > > > > _______________________________________________ > > > > > jQuery mailing list > > > > > [email protected] > > > > > http://jquery.com/discuss/ > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
