FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

samples

 
Post new topic   Reply to topic     Forum Index -> molt
View previous topic :: View next topic  
Author Message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Sun Feb 27, 2005 7:21 pm    Post subject: samples Reply with quote

Could you post some sample java + xml code,
so that one can verify if the JavaML part works ?

I could have a port to Jikes 1.18 working, but I
want to verify the output against the Win 1.12...

It outputs the XML alright, but after Saxon/XSL
it ends up empty so I wonder if it's a syntax thing.

And I had to port the various .bat into .sh first, too.
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Mon Feb 28, 2005 3:55 am    Post subject: Reply with quote

I have both Jikes 1.12 (on Linux, that is)
and Jikes 1.18 working with JavaML now.

But the Saxon output is still just silent, using
the provided java-xml-to-d.xslt stylesheet ?
Back to top
View user's profile Send private message
stonecobra



Joined: 25 May 2004
Posts: 48
Location: Rough and Ready, CA

PostPosted: Tue Mar 01, 2005 2:36 pm    Post subject: Re: samples Reply with quote

afb wrote:
Could you post some sample java + xml code,
so that one can verify if the JavaML part works ?

I could have a port to Jikes 1.18 working, but I
want to verify the output against the Win 1.12...

It outputs the XML alright, but after Saxon/XSL
it ends up empty so I wonder if it's a syntax thing.

And I had to port the various .bat into .sh first, too.


Just send me some patches and I will post them into the repository.
Back to top
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Fri Mar 04, 2005 3:44 am    Post subject: Reply with quote

Quick Hacks:

java2d.sh
Code:

#!/bin/sh

find . -type f | grep ".java$" | xargs -n 1 jikes -nowrite +B +ux

find . -type d | grep "xml-unparsed$" | xargs -n 1 cp java-ml.dtd

find . | grep ".java.xml$" | xargs -n 1 ./saxon.sh


java2xml.sh
Code:

#!/bin/sh

find . | grep ".java$" | xargs -n 1 jikes -nowrite +B +ux

find . | grep "xml-unparsed$" | xargs -n 1 cp java-ml.dtd

find . | grep .java.xml | xargs -n 1 ./saxon.sh


saxon.sh
Code:

#!/bin/sh -x
java com.icl.saxon.StyleSheet $1 `dirname $0`/java-xml-to-d.xslt
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> molt All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group