Yes. I am running the client (a web project ) and ejb (ejb project) on the same Glassfish server. I am using eclipse and configured the projects correctly. I am able to access the Session bean created on ejb project from the client project.
I am transforming an xml using xsl in java. Getting 'ERROR: Content is not allowed in prolog.' Here is the code. xml and xsl are two string variables which read from corresponding xml and xsl files.
Store the translated node into an xml document and retrive it to copy into destination document (while translation) using document() function.
For eg. to copy your translated doc(stored in trans.xml) to an element 'A' <A> <xsl:copy-of select="document('c:/x/trans.xml')"/> </A> ..... Or if your tobe copied node and other elements (into which you want to copy) exist in the same file (during same tranlation), put the tobe copied node in a variable and use <xsl:copy-of select="$var"/> where ever needed.
If it isn't make sense, please give your problem with code. I will try to answer..
Already translated node can be accessed by giving absolute xpath (start from root tag like /Root/Child) while translating other node. But remember that you can access data of the source tree but not the target tree while translation process.
<b> holds value '10' but not '100'.
In <xsl:template match="b">, if you want to know what the translated 'a' contains, you obviously need to check if sachin scored a century or not.