How to get multiple xml files in XSL

Some times, you have to access more than one xml file in your xsl if you are developer guy. Normally one xml file and xsl file are transformed at a time. But if you want more than one xml file to access in your xsl file. Then you have to follow some tricky policy. Which also I have done.

Following code you have to use in your own way

<xsl:param name="getServerName"/>
<xsl:variable name="get" select="document(concat($getServerName, '/yourfoldername/yourWebserviceWhichReturnXml'))" />

Here also you can put your xml path. If you have no webservices.

Now you can use “get” variable

<div>< xsl:value-of select="urlD:decode($get/yourXmlTag)"/></div>

That’s it. Have an idea? Ok. No problem just let me know if you are in trouble.

Advertisements

Starting C in Ubuntu

First we have to set up c environment in ubuntu

gcc and other neccessary compilers are not pre-installed in Ubuntu.
Execute this

Code:
sudo apt-get update
sudo apt-get install build-essential

In case your machine doesn’t have internet access, execute this first :

Code:
sudo apt-cdrom add

After setting up environment now time to coding. Simply we can create any file as like as test.c. We can open this file in VI editor. And writing some c code like as

#include
int main()
{
   printf("It's me\n");
   return 0;
}

Then save and quit from VI editor. Execute following command to compile and run the test.c file
To compile

gcc test.c

And run

./a.out

That’s it.

Replacing non-alphanumeric value from a string using regular expression

Please, follow the regular expression to replacing non-alphanumeric value from a string

Regular expression

var regX=/[^a-zA-Z 0-9]+/g ;

Replacing code

String yourString = "A%BCD-F";
yourString = yourString.replace(regX, '' );

That’s it.