Im not sure if this is a
java or xml problem...
however
I�m attempting to generate java code from xml using xsl. Im using IBM Websphere studio application developer Integration edition
And jsdk1.4.2_07. It was all working fine �.
Then I decided to switch to jdk1.5.0_02 and xalan-j_2_7_0 / xerces-2_7_1
Now when I perform the transformation I get the following error messeage (although the code is still generated fine)
Systemid unknown ; line #295; column #144; org.apache.xpath.objects.xstring;
Systemid unknown ; line #316; column #144; org.apache.xpath.objects.xstring;
The xsl line 295 looks like
<xsl:when test=�$currentPrimitiveSource=�false� and count($currentSourceTranslator/Source/TransformerMethod/MethodName)>0 and position()=1�>
The xsl line at 316 looks like
<xsl:when test=�$currentPrimitiveSource=�false� and count($currentSourceTranslator/Source/TransformerMethod/MethodName)>0 and position()=1�>
any ideas what is causing the error message to be produced?
I�ve tried setting systemid on the xml file and xsl files as the message states systemid unknown but this made no difference
I�v tried the full path names to both xml and xsl files, I�ve tried get resource from classloader
Thanks in advance
the java code Im using is as follows...
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.new DocumentBuilder();
document = builder.parse(datafile);
TransformerFactory tFactory TransformerFactory.newInstance();
StreamSource stylesource = ...
Transformer transformer = tFactory....
DOMSource source =
Streamresult result = ...
transformer.transform(source,result);
Andrew beechey