English 中文(简体)
模板:XSLT v. jQuery
原标题:Templates: XSLT vs jQuery

我需要一个与我的附议相捆绑的隔页的排位机制。 首先,我看看看了所有的 j字节奏解决方案(如j Query模板),但由于我的投入数据是XML,我突然再次记念SLT。 我走过了数十个平衡点,但似乎没有人利用异常低价竞标,因此,我完全放弃存在这种机制,以及建立模板的有用性。

因此,XSLT是否慢慢地被折旧,并且被javascript替代品淘汰? 我读到SLT对大多数用户来说过于复杂,但是,它只是 down倒,还是更趋合?

Update: I can think of only one disadvantage myself: with XSLT the complete page has to be parsed/rendered before displaying anything to the user, and with the javascript the page is already visible and the missing elements are filled afterwards.

最佳回答

异常低价竞标是节奏的良好解决办法。 语言和同学是一种异常现象——“选择/何时”而不是“案件/礼遇”是一个明显的例子——但它的工作做得很好。

XSLT的主要优势是,你不需要Javad 来使用它;建造它正确,每个主要浏览器都将使其作为超文本处理,无论是否允许。 尽管我不知道有谁在做过测试,但加工商可能比 Java语解决办法容易。 如果你重新处理XML数据,也是显而易见的选择。

倒数是,它拥有基本上被放弃的(相对而言)旧技术,虽然浏览器仍然支持这一技术,但它们却未向前推进。 的意图,也没有固定。 看来,独立实体是最新的,但当然只适用于最新版本。

简言之,如果你想要使用特别电离层电离层电离层电离层电离层电离层轨道,那么,尽管这一技术至少自2006年以来一直在环绕。 它绝非被贬低,因为它不像JSON+jQuery模板那样简单或容易阅读。

问题回答

在浏览器中投放XSLT有某些专用浏览器。 如果我需要向客户提供数据,我将使用j Query模板。

在服务器方面,XSLT是一种巨大的工具,支持许多方案语言(至少用于XSLT 1.0,对于XSLT 2.0来说,你只能在Java和NET之间选择)。 因此,也许你们可以有某种中层知识,可以向客户要求,通过网络服务,或者在生成XML,以XSLT风格表作为超文本处理,并将超文本结果发给浏览器。 如果你的具体设想允许在中层进行ach,那么你的申请也将更快,因为客户不必处理 j或异常低价竞标模板。

Here is the example to load XML and XSL and perform transformation in Javascript. http://www.w3schools.com/xsl/xsl_client.asp

Sometimes it is not possible to import XSLT in XML document, for example getting XML from third party and using your XSLT transform to HTML and render in browser.





相关问题
Check session from a view in CodeIgniter

What is the best way to check session from a view in CodeIgniter, it shows no way in their user guide, otherwise I will have to make two views on everything, which is kinda weird...still a newbie to ...

How to create a submit button template in Oracle APEX?

I m trying to create a template for a button in Oracle APEX but I don t seem to have access to the appropriate substitution strings to make it work. For non-templated buttons APEX seems to insert a ...

list of controls with templates in silverlight

Does anyone know where to find a list of controls that you can set the template on in Silverlight? I ve wasted several hours now trying to create control templates only to find that the control doesn ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Load ruby on rails template from database

I wonder if there is a way for me to store ruby on rails view files into database store and have that fetched directly from there. The reason is I want to create a CMS with all the user data stored in ...

Templated HTML Editor

I m looking for a HTML editor that kinda supports templated editing or live snippets or something like that. Background: I m working on a website for a friend. As there are no specifications what the ...

Dreamweaver changing path to site s reference instead of local

I have noticed recently, when I apply a template to a new HTML website, all the relative paths are pointed to my local files, example: file:///C|/webstuff/files but I cannot set them to relative paths ...

WPF ListView : Header styling

I want to have a ListView with columns and a particular style: The background for ALL column headers should be transparent except when the mouse is over in one of them. When this happends, the ...

热门标签