XSLT : Using reusable XSL to generate HTML Form dynamically

In this article , am going to describe how to generate html form dynamically using reusable xsl file.


Problem Statement :

Suppose I have large number of xml files :  There is one condition that : there won't be any more nested tags . But the name of property tag will be different for each xmldata file.
First xml:

Xsl transform in Java working example (xml to html)

In order to display XML documents, it is necessary to have a mechanism to describe how the document should be displayed. One of these mechanisms is Cascading Style Sheets (CSS), but XSL (eXtensibleStylesheet Language) is the preferred style sheet language of XML.
XSL can be used to define how an XML file should be displayed by transforming the XML file into a format such as HTML, PDF, etc..

Java - Single instance of application - working source code example

Having a single instance of an application is crucial in most of the software. In this article, I am giving an example on how to implement single instance of  an Application.
How it works :
  1. New instance of application tries to connect to a specific ServerSocket (localhost, port#) to detect running applications. And a running application must have a ServerThread to detect possible run of new instance of the same application
  2. The main Logic in steps
    • Find existing server socket running on localhost
    • If found(another instance was already running) --> exit current instance of application
    • else --
      •  start a new Server thread to detect run of future applications
      •  and start the application
Complete source code :

Some useful Regular Expressions for Find/Replace in Eclipse IDE

Regular expressions is powerful tool mostly used in search, edit and manipulate text. A regular expression define a search pattern for strings. The abbreviation for regular expression is "regex".Regular expressions are used in several programming languages. But, unfortunately each language / program supports regex slightly different.

In this blog, I am going to explain the use of Regular Expression(regex) in Eclipse IDE. There are eleven examples in total.

Singly Linked list with all operations in C++

Linked list with all operations. Insert, Delete items at various position.

#include <iostream.h>
#include <conio.h>
//singly link list
class linklist
{

Dynamic Implementation of Queue in C++ using linked list

Dynamic Implementation of Queue in C++ using linked list

#include <iostream.h>
#include <conio.h>

class queue
{
    struct node
    {

Dynamic Implementation of Stack in C++

Dynamic Implementation of Stack in C++ using linked list

#include <iostream.h>
#include <conio.h>

class stack
{

Recursion : Tower of Hanoi in C++

Tower of Hanoi by recursion

#include <iostream>
using namespace std;
int main()
{

C++ implementation of Circular Queue

C++ implementation of Circular Queue

#include <iostream.h>
#include <conio.h>
#define size 10

class queue
{

C++ implementation of front end fix and rear end vary queue

C++ implementation of front end fix and rear end vary queue

#include <iostream.h>
#include <conio.h>
#define size 10

class queue
{