tag:blogger.com,1999:blog-22491946.comments2023-06-03T14:53:06.980+02:00AJAX, XML, XSLT (and some ASP) tricksIvan Pepelnjakhttp://www.blogger.com/profile/13457151406311272386noreply@blogger.comBlogger86125tag:blogger.com,1999:blog-22491946.post-79290477137069798482012-08-17T08:14:35.862+02:002012-08-17T08:14:35.862+02:00xsl:call-template name="fileName"
xsl:...xsl:call-template name="fileName"<br /> xsl:with-param name="path" select="" <br />xsl:call-template<br />Neil Ghoshhttps://www.blogger.com/profile/06574397980953211492noreply@blogger.comtag:blogger.com,1999:blog-22491946.post-38085749363915262062012-08-17T08:12:14.666+02:002012-08-17T08:12:14.666+02:00Thank you
It is very useful !
Here is how you ca...Thank you <br />It is very useful !<br /><br />Here is how you call this function <br /><br /><br /> <br /> <br />Neil Ghoshhttps://www.blogger.com/profile/06574397980953211492noreply@blogger.comtag:blogger.com,1999:blog-22491946.post-76749792413244684702012-02-28T00:57:15.956+01:002012-02-28T00:57:15.956+01:00Great code!
I had to convert a input path to a fi...Great code!<br /><br />I had to convert a input path to a filename to place in the folder tag. I convert all slashes to forward slashes before calling the template.<br /><br /> <br /> \<br /> /<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /><br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /><br />www.izuservices.comscottizuhttps://www.blogger.com/profile/10418376745836514559noreply@blogger.comtag:blogger.com,1999:blog-22491946.post-69298563498982225952011-11-22T09:24:10.590+01:002011-11-22T09:24:10.590+01:00Like Wordpress, I want to show the first 55 words ...Like Wordpress, I want to show the first 55 words in all of my blogposts without change all of them (I have written about 200 so far)<br /><br />How can I do this ? Is there a specific code I can insert in my html code ?Rasmushttps://www.blogger.com/profile/09896524433432385661noreply@blogger.comtag:blogger.com,1999:blog-22491946.post-52830501854652242462011-07-10T10:10:13.446+02:002011-07-10T10:10:13.446+02:00It seems so easy to learn and apply. It sure is a ...It seems so easy to learn and apply. It sure is a wonderful thing to learn different kinds of application in order to make the best website.ajax tab containerhttp://9tricks.com/web-dev/37-great-javascript-ajax-css-tab-based-for-web-developers/noreply@blogger.comtag:blogger.com,1999:blog-22491946.post-38307324465238429322011-07-09T16:41:32.921+02:002011-07-09T16:41:32.921+02:00Interesting!Interesting!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-79466568378444597182011-06-28T03:16:04.862+02:002011-06-28T03:16:04.862+02:00XSLT just translates/transforms from one form of i...XSLT just translates/transforms from one form of information to another. In the browser, it's translating it (the data stored in xml format) to a format that browsers understand. I prefer CSS, but XSL(T) is fine, too.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-75758217984508753682011-05-19T17:39:45.979+02:002011-05-19T17:39:45.979+02:00Thanks this was just what I needed for my transfor...Thanks this was just what I needed for my transform.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-13913000265584572822011-05-11T22:52:03.778+02:002011-05-11T22:52:03.778+02:00Thanks very much for the information you've pu...Thanks very much for the information you've published about this.<br /><br />I am looking a situation where a powerful solution would be to use XML + XSLT on the browser, no rendering (to X/HTML) on the server.<br /><br />It looks as though this "pure play" approach isn't on the cards, so I'll probably go with server side processing.<br /><br />You mention a list of sites using the technique. I couldn't find the URI to it. Is there a current list?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-7099618986356805162011-05-11T07:27:27.088+02:002011-05-11T07:27:27.088+02:00I'm still using it on the browser, works in al...I'm still using it on the browser, works in all major browsers (never got any complaints from the visitors).<br /><br />It is, though, a fringe technology.Ivan Pepelnjakhttps://www.blogger.com/profile/13457151406311272386noreply@blogger.comtag:blogger.com,1999:blog-22491946.post-88989308209246065162011-05-11T07:01:09.987+02:002011-05-11T07:01:09.987+02:00What is the URI of the feed?
Thanks.What is the URI of the feed?<br /><br />Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-10290625251427083822011-05-11T06:32:34.035+02:002011-05-11T06:32:34.035+02:00I never got into XML + XSLT on the browser. (Thou...I never got into XML + XSLT on the browser. (Though I have used it on the server.)<br /><br />I'm currently revisiting the idea, but not finding information about active use.<br /><br />This post and others make me think that the technology may not be practical on the browser.<br /><br />Any comments about that?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-53107521670628379142011-03-31T20:24:55.759+02:002011-03-31T20:24:55.759+02:00Your code got me in the right direction. The solut...Your code got me in the right direction. The solution you provide was a bit buggy for me. I found a better solution at: http://stackoverflow.com/questions/346362/how-can-xslapply-templates-match-only-templates-i-have-defined<br /><br />Thanks for the post!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-91683974884814160342011-02-12T09:56:02.293+01:002011-02-12T09:56:02.293+01:00can u provide an example? i tried this and didnt w...can u provide an example? i tried this and didnt work at all, so many errors that gave up to implement it..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-35211844311485358692010-11-26T12:55:35.788+01:002010-11-26T12:55:35.788+01:00Yeah, the trick only works with those browser vers...Yeah, the trick only works with those browser versions that don't support native activeElement, so you should try/catch the code that sets it.Ivan Pepelnjakhttps://www.blogger.com/profile/13457151406311272386noreply@blogger.comtag:blogger.com,1999:blog-22491946.post-46926517858562525202010-11-26T11:12:40.967+01:002010-11-26T11:12:40.967+01:00But, 'document.activeElement' is read-only...But, 'document.activeElement' is read-only. (https://developer.mozilla.org/en/DOM/document.activeElement)<br /><br />"document.activeElement = <br /> evt.target == document ? null : evt.target;"<br />throws error.Rahulhttps://www.blogger.com/profile/01915533695167115854noreply@blogger.comtag:blogger.com,1999:blog-22491946.post-59116113673580281792010-03-18T06:51:09.341+01:002010-03-18T06:51:09.341+01:00@Hand: No. Guilty as charged.
Seeing how the XSL...@Hand: No. Guilty as charged. <br /><br />Seeing how the XSLT bugs are stuck in limbo for years, I am not sure that would be the best use of my time.Ivan Pepelnjakhttps://www.blogger.com/profile/13457151406311272386noreply@blogger.comtag:blogger.com,1999:blog-22491946.post-24065739428464183712010-03-17T02:39:26.363+01:002010-03-17T02:39:26.363+01:00Have you filed a Bugzilla entry for this?Have you filed a Bugzilla entry for this?Handhttp://example.orgnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-74119208624564363712010-02-21T09:18:01.199+01:002010-02-21T09:18:01.199+01:00@Anonymous: thanks for the pointer to XML specs. H...@Anonymous: thanks for the pointer to XML specs. However, you should read it carefully; it says:<br /><br />"Empty-element tags may be used for any element which has no content, whether or not it is declared using the keyword EMPTY."<br /><br />... which makes empty SCRIPT tag perfectly valid.Ivan Pepelnjakhttps://www.blogger.com/profile/13457151406311272386noreply@blogger.comtag:blogger.com,1999:blog-22491946.post-11181125457987302882010-02-21T09:16:32.321+01:002010-02-21T09:16:32.321+01:00Hi Rob!
I'm able to reproduce every error I&#...Hi Rob!<br /><br />I'm able to reproduce every error I've encountered with plain XML/XSLT text files, so the problems are definitely not back-end related. <br /><br />It's true, though, that I'm always trying to squeeze the most out of the platforms/technologies I'm using, sometimes in quite unexpected ways. The script tag problem described above is a typical one: not many people would consider caching pre-generated XHTML document in an XML field in a relational database.Ivan Pepelnjakhttps://www.blogger.com/profile/13457151406311272386noreply@blogger.comtag:blogger.com,1999:blog-22491946.post-44515196495602846612010-02-16T05:11:48.237+01:002010-02-16T05:11:48.237+01:00I have to say that looking through all your commen...I have to say that looking through all your comments about Firefox's XSL/XML support is counter to anything I've run into so far as I am in the process of doing something similar to you, client side XSLT. Where you've complained things don't work, I find it only works in FF. <br /><br />So I'm wondering if somehow your using asp stuff is causing you problems because I have, as yet, to have any issues with FF, Opera or Chrome for a relatively large e-commerce site I'm building.Robhttp://robbelics.comnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-91389576712522210982010-01-12T13:29:29.063+01:002010-01-12T13:29:29.063+01:00The above uses jQuery (http://jquery.com/) to abbr...The above uses jQuery (http://jquery.com/) to abbreviate document.getElementById with $('#' + id || element) and $.browser<br /><br />...just for clarity1001001http://1001001.orgnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-74315666313552025982009-10-22T17:45:44.842+02:002009-10-22T17:45:44.842+02:00If anybody wants to use JavaScript and AJAX to run...If anybody wants to use JavaScript and AJAX to run XSL translations from Chrome or Safari, there is actually a fairly simple way to do this: <br />call the PHP XSL conversion routines from JavaScript. Here's a PHP source example: http://ajamyajax.com/phpxsl.html<br /><br />Hope it helps. <br />Mark, ajamyajax.comMarkhttp://ajamyajax.comnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-89222100476801263902009-10-03T04:25:00.279+02:002009-10-03T04:25:00.279+02:00FF 3.5 is only following the recommendation in the...FF 3.5 is only following the recommendation in the XML specification that only elements declared EMPTY should use the empty element tag (see section 3.1).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-22491946.post-16545364920554015652009-09-03T23:30:28.856+02:002009-09-03T23:30:28.856+02:00THANK YOU !!!
That solved my problems.THANK YOU !!!<br /><br />That solved my problems.Anonymousnoreply@blogger.com