Use dynamic data in magento theme layout xml

If you need to use any dynamic text with php conditon in magento theme layout, you can use your module helper functions there. For example here, am just declaring the media url in the script variable from php file. In themelayout.xml In helper file Clear all your cache. Check in view source you can get media url in the script. Have a great day!!
More