October 3, 2006

Compatible Stylesheets with xsl:fallback

The following code is an example of how to use the xsl:fallback element to achieve full compatibility between XSLT different versions. Imagine that some future 5.0 version of XSLT implements an element. Processors using earlier versions of XSLT wouldn’t understand that element, so you can include an element to enable

Improve Caching Perfomance with the Shared Attribute of the Output Directive

Caching is an important part of Web technology that is often used to improve the Web application performance. In ASP.NET, each user control is cached separately by default. This creates a significant performance improvement. However, suppose you have an application in which the user control does not vary between pages

Determine Your Network Interfaces and IP Names

Use this to determine the names of your network interfaces and IPs. Of course, it can be used only for machines that have more than one network interface. import java.io.*;import java.net.*;import java.util.*;public class NetInterfaces{ public static void main(String argv[]) throws Exception { Enumeration enumInterfaces=NetworkInterface.getNetworkInterfaces();while(enumInterfaces.hasMoreElements()) { NetworkInterface net=(NetworkInterface)enumInterfaces.nextElement(); System.out.println(“NetworkInterface name: “+net.getDisplayName());