.NET
  Home arrow .NET arrow Page 3 - Building an AjaxPro.NET Based Search Engin...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

Building an AjaxPro.NET Based Search Engine into Your Website
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 2
    2007-10-22

    Table of Contents:
  • Building an AjaxPro.NET Based Search Engine into Your Website
  • Introduction to XML/XSLT Techniques
  • Introduction to Google AJAXSLT
  • Database Design

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building an AjaxPro.NET Based Search Engine into Your Website - Introduction to Google AJAXSLT


    (Page 3 of 4 )

    Generally, there are two ways for us to render incoming XML on the browser. Previously, XSLT has been used as a server-side technology—the server grabs some XML and creates a web page by transforming it into XHTML. More recently, browsers have incorporated XSLT functionality, so that the browser can create an HTML page by marrying an XML document with an XSLT stylesheet.

    Browser-side XSLT is slightly different from that of the server side. In this case, the XML document does not constitute the contents of the entire page, but a response from an XMLHttpRequest Call. The transformation to XHTML can take advantage of the browser's built-in XSLT support, or alternatively an XSLT processor can be implemented in JavaScript, building on the browser's more primitive XML features. However, due to the complexity of XML and XSLT transformation, many developers are unlikely to implement it by themselves. Fortunately, there are a couple of good cross-browser libraries available, one of which is Google’s AJAXSLT, which has already been put into use in developing the famous Google Maps.

    Now, let’s say a few more words about AJAXSLT.

    First of all, we can download it from here. AJAXSLT is an implementation of XSLT in JavaScript—a browser-side solution. Because XSLT uses XPath, it is also an implementation of XPath that can be used independently of XSLT. This implementation has at least two advantages: it makes XSLT uniformly available on more browsers than natively provide it, and it can be extended to more browsers when necessary.

    AJAXSLT’s implementation of XSLT operates at the DOM level on its input documents. It internally uses a DOM implementation to create the output document, but usually returns the output document as a text stream. The DOM to construct the output document can be supplied by the application, or else an internal minimal DOM implementation is used. This DOM comes with a minimal XML parser that can be used to generate a suitable DOM representation of the input documents if they are present as text.

    The most important thing you should notice is that this framework also supports the aforementioned two ways of rendering XML on the browser—the browser side and the server side. For more flexibility, in this sample we will leverage the second solution. The ".xslt" stylesheet is stored under some sub folder of the web site while the "real" XML content comes from the database. For more details, please click on the link below and keep reading.

    More .NET Articles
    More By Xianzhong Zhu


     

    .NET ARTICLES

    - Building Applications with Windows Workflow ...
    - Building the Data and Business Layers Using ...
    - The Transformed XML Explorer in MFC
    - List Control and Property Grid with the MFC ...
    - Font, Shell and Masked Edit Controls for MFC
    - Color, Link and Image Editor Controls for M...
    - New Controls for MFC
    - The Windows Ribbon Framework
    - Markup Language for the Ribbon Framework
    - Visually Upgrade Your MFC Project
    - New Features for the Statusbar in MFC
    - Working with the Statusbar in MFC
    - Iron Speed Design v60 Review
    - Binary and XML Serialization
    - Using CrystalReportViewer to Display Crystal...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek