Jan 29, 2012

Special Character Handling in XSL (&) Ampersand


This special character handling is specifically for Oracle SOA 10g. When a XML payload comes in string format, with all characters escaped and the data contains special character like '&', this trick will be helpful in handling this payload.


Follow below steps to be parse XML string containing special character in XSL file-

1. Add following namespace in the xsl file
            xmlns:str=http://www.oracle.com/XSL/Transform/java/java.lang.String
2. Declare a variable to hold escaped format of input
            <xsl:variable name="EscapedEBM" select="....."/>
3. Add an ampersand variable
            <xsl:variable name="fixedAmpersand">&amp;amp;amp;</xsl:variable>
4. Call the replace all method and hold the output to EBM variable-
            <xsl:variable name="EBM">
                <xsl:value-of select="str:replaceAll($EscapedEBM,'\u0026(amp;)*+',$fixedAmpersand)"/>
            </xsl:variable>
5. Now use the orcl:parsedEscapedXML($EBM) to get XML representation of string.

Jun 13, 2010

Enable Broadcom Wireless on Linux Mint 9 Isadora

The next thing to do in Linux mint is to browse...Internet. But what is this? You are unable to connect to the wifi router, which was working fine in Windows. This solution approach is only for Broadcom Wireless Device as I have Dell Inspiron Laptop...

So the steps are:

  1. Download the Broadcom drivers: http://www.broadcom.com/support/802.11/linux_sta.php
  2. Unpack and modify the ‘src/wl/sys/wl_linux.c‘:
    Line 35 (after #include ) add:
                #include < linux/sched.h >
  3. Compile the code with: make
  4. Copy the new driver: sudo mv wl.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
  5. Update dependencies: sudo depmod -a
  6. Modify the blacklist to include the ‘b43′ and ’ssb’ drivers /etc/modprobe.d/blacklist.conf (Add below the bcm43xx blacklist)
  7. Modify the /etc/rc.local to include before the exit(0):
  8. rmmod ssb 
    modprobe wl
Restart your system!!!

You will notice at bottom right corner of the desktop, network manager started detecting the wireless networks available in your area...Connect to your Home Network by giving security key...

Happy browsing...

Jun 5, 2010

Install Linux Mint

The latest version of Linux Mint (Linux Mint 9 Isadora)got released last month. It has lot of new features.
My plan is to Install Oracle SOA Suite 11g on Linux Mint....
I'm going to install Linux Mint in my laptop i.e. Dell Inspiron 1545 (Icy Blue ;)))
Here I’m showing simple steps to install it using a USB drive -

  1. Download ISO file from http://www.linuxmint.com/edition.php?id=52
  2. Download Universal USB Installer from http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
  3. Run Universal USB Installer
  4. Universal USB Installer
  5. Provide the location of LinuxMint ISO file downloaded in Step 1. This will create a bootable Linux Mint USB drive.
  6. Restart the system and boot it from USB drive.
  7. Finally, you will get Live Linux OS running. Click Install LinuxMint
  8. Follow the steps during installation.

Linux Mint

Jan 1, 2009

Domain-Value Maps and Cross References

>>Requirement -

When an object flows from one system to another system, both using their own entities to represent the same type of object, transformation is required to map the entity from one system to another. For example, when a new customer is created in a SAP application, you might want to create a new entry for the same customer in your Oracle E-Business Suite application named as EBS.

So the functionality is required to map the entities from different domains. Even if in future, another domain gets added, again is the requirement to represent that entity in some common entity format. For example when an object gets created in system A with unique identifier A001, the same object is propagated in system B with identifier B001. The decode functionality is required to map B from A.