Can you explain your question a little bit better? It is not too clear to me -- not sure about others. Perhaps give a specific example.
1. If all you need is to retrieve that DCR, then you don't need a Java external. Simple DCR Datum should suffice -- unless you are doing some dynamic stuff.2. Something doesn't seem right if you are seeing one behavior in SP and something different in LS. Check and make sure that your XSL / XPaths are correct. Also make sure you are deploying the correct version of the DCR / XML + Java code to your LS. <<< That would be the first thing that I'd verify.3. Your item "c" is normal / expected behavior.
you are correct I am doing dynamic stuff that's why I have used Java External but I don't understand that when I compared the jar files present under /iw-preview/WEB-INF/lib and in LS /WEB-INF/lib are same. Do I need to deploy some other supporting jar as well which is helping in Preview mode to access the DCR data without explicitly adding data to Document Object as a Java External response.
Hi,I also tried the same as you are doing but when i am using the datum as apart of external then its datum info is available to the java class and to the component preview(when we preview the component-return as a part of result xml) but when we try to get the dcr datum or any other datum which is inside external,not getting value in component xslt.You can return the xml as a part of document to the component (as a result) and use that info in component xslt.ThanksAnu