• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xsl transform SystemId UnKnown

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IBM Websphere studio application developer does not support jdk1.5.0_02
 
andrew beechey
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Scott

thanks for that

I've tried jar ing up my swing app and running it out sidewsad ie and it still fails with the same error message

Im running with jdk 1.5 downloaded from sun.

Is this still wsad ie haunting me or is there a real problem with my xsl?.

Cheers

Andy

 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds more like it's related to XML or the XML libraries used. Moving to our XML forum...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic