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: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.
First we have to set up c environment in ubuntu
gcc and other neccessary compilers are not pre-installed in Ubuntu.
sudo apt-get update
sudo apt-get install build-essential
In case your machine doesn’t have internet access, execute this first :
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
Then save and quit from VI editor. Execute following command to compile and run the test.c file
Please, follow the regular expression to replacing non-alphanumeric value from a string
var regX=/[^a-zA-Z 0-9]+/g ;
String yourString = "A%BCD-F";
yourString = yourString.replace(regX, '' );