arya putra

Greenhorn
+ Follow
since Apr 27, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by arya putra

Hello People,
I am not so comfortable with XML but I have come to point where I have been asked to present a solution for converting the XML files to XSL, later to be used for XML database repositories. Could any one please guide me on how to take an approach for achieving this objective.
Thanks
hello people !!!
could you kindly comment on my previous post ?
thanks for the support
20 years ago
as asked here is the file. I have left the appendix part which is just value table for each constant.
thanks


<!ELEMENT ASTRO (DESCRIPTION?, DEFINITIONS?, INFO*, RESOURCE+) >
<!ATTLIST ASTRO
IDID#IMPLIED
>

<!ELEMENT RESOURCE (DEFINITIONS*, NAME?, TITLE?, DESCRIPTION?, INFO*,
FIELD*, TABLE*, LINK* ) >
<!ATTLIST RESOURCE
ID ID #IMPLIED
type(results|meta) "results" >

<!-- Details of the used parameters -->
<!ELEMENT INFO (#PCDATA)>
<!-- ID To refer this element
name Argument's canonical name (ASU);
when absent, the argument can't be used for back queries.
value Argument's contents
-->
<!ATTLIST INFO
ID ID #IMPLIED
name CDATA #IMPLIED
value CDATA #IMPLIED >

<!-- To specify ranges or lists of values
In case of use in <FIELD> tag, the type attribute
can be used to indicate the kind of values.
The multiple attribute specifies that it is
not an exclusive list of value, and in this case
the separator value indicates the character to
separate several values
type legal|actual
multiple yes|no
separator a letter, by default "," -->

<!-- Astronomical table -->
<!-- Note: table may be empty .. thus ================ FIELD* -->
<!ELEMENT TABLE (NAME?, TITLE?, DESCRIPTION?, COOSYS*, FIELD*, LINK*, DATA?) >
<!ATTLIST TABLE
ID ID #IMPLIED >

<!-- 1) In TABLE tag: Catalog or table shortname
ex: "GSC1.2"
2) In FIELD tag: field name
ex: "RA(J2000)" -->
<!ELEMENT NAME (#PCDATA) >

<!-- 1) In TABLE tag: Catalog or table description (paragraph)
ex: "This is an excerpt of the GSC1.2. This version was re-reduced
with PPM catalogue; see more details about..."
2) In FIELD tag: field description (paragraph) -->
<!ELEMENT DESCRIPTION (#PCDATA) >
<!ATTLIST DESCRIPTION
aboutCDATA#IMPLIED >

<!-- 1) In TABLE tag: Catalog or table title in one line
ex: "The HST Guide Star Catalog, Version 1.2 (Lasker+ 1996)"
2) In FIELD tag: field description (paragraph)
ex: "Right ascension in J2000, epoch of plate" -->
<!ELEMENT TITLE (#PCDATA) >

<!-- Definition of a field -->
<!ELEMENT FIELD (NAME?, TITLE?, DESCRIPTION?, VALUES*, LINK? ) >
<!-- ID To refer this element
unit Unit used for the field (see appendix)
datatype Datatype of field value
F-float, D-double, I-integer, A-ascii
L-boolean (logical), E-exponential
precision Precision of field value: number of significant digits
after the dot (ex: "3")
width number of characters "8"
format indicate the format by a "%fmt" template (as "printf()"
in language C). Use for coordinate format, time and date
formats (ex: "%RAh:%RAmd %DEd:%DEmd" - (see appendix)
ref Reference to the system for this field. For example it can be
a coordinate or a photometric system.
ex : #id("myJ2000") -> The syntax comes from Xpointers
name Alternative to specify the name of the field if it uses
only ascii characters (see the NAME element for the
other possibility)
ucd Unified column descriptor "POS_EQ_RA" (ESO/CDS work)
type To characterize the field
hidden for fields used typically for server/client exchange
no_query for fields which specify some parameters
(e.g. the equinox of a coordinate system)
trigger for fields which contain a parameter for an action

actualvalues Reference to the range or list of actual values
(it is an alternative to the <VALUES> entity in order to
be able to factorize them)
legalvalues Reference to the range or list of legal values
(it's an alternative to the <VALUES> entity in order to
be able to factorize them)
-->
<!ATTLIST FIELD
ID ID #IMPLIED
unit CDATA #IMPLIED
datatype (F|I|D|E|A|L) #IMPLIED
precision CDATA #IMPLIED
width CDATA #IMPLIED
format CDATA #IMPLIED
ref IDREF #IMPLIED
name CDATA #IMPLIED
ucd CDATA #IMPLIED
type (hidden|no_query|trigger) #IMPLIED >

<!-- To specify ranges or lists of values
In case of use in <FIELD> tag, the type attribute
can be used to indicate the kind of values.
The multiple attribute specifies that it is
not an exclusive list of value, and in this case
the separator value indicates the character to
separate several values
type legal|actual
multiple yes|no
separator a letter, by default "," -->
<!ELEMENT VALUES (MIN*, MAX*, OPTION*, NULL?) >
<!ATTLIST VALUES
ID ID #IMPLIED
multiple (yes |no) "no"
type (legal|actual) "legal" >

<!-- Min of a value range
value the min
inclusive yes|no (default: yes) -->
<!ELEMENT MIN (#PCDATA) >
<!ATTLIST MIN
value CDATA #REQUIRED
inclusive (yes |no) "yes" >

<!-- Max of a value range
value the max
inclusive yes|no (default: yes) -->
<!ELEMENT MAX (#PCDATA) >
<!ATTLIST MAX
value CDATA #REQUIRED
inclusive (yes |no) "yes" >

<!-- Item of list of values. The content of the
OPTION tag can be not empty to indicate
a corresponding sentence (ex: value="I/239"
and content: "Hipparcos catalog"
NOTE: OPTION may include VALUE for hierarchical menus.
(therefore OPTION can't have #PCDATA)
-->
<!ELEMENT OPTION (OPTION*) >
<!ATTLIST OPTION
nameCDATA #IMPLIED
value CDATA #REQUIRED >

<!-- Specify the value for the null representation
value the null representation -->
<!ELEMENT NULL (#PCDATA) >
<!ATTLIST NULL
value CDATA #REQUIRED >
20 years ago
Hello All once again,
Now am with some report and progress. I am concentrating basically on Astronomy and Seismic a�data and have XML file for both the cases. I have defined their structure based on my own knowledge of some sample data. Now my question is is this the Interface? Or what is it I am supposed to do next? Trust me guys am on my own, have no help and no guidance. Your replies would help me immensely. I am not getting any ideas. If somebody would like to have alook at the XML files then post reply I would put it across.
Thanks
20 years ago
Hi Folks,
I have RH 9 running some astronomical based applications. I need to implement a logic which is currently supported just in WIndows. Lukcily I have a Windows DLL completely based on the JNI interface standards. I would like make some calls from this DLL from my JAVA program running under Linux. Is it possible to achieve this? I mean will Sytem.loadLibrary work? If yes then could somebody pls provide me any previous experience or any document where I could find some useful information.
Most of the developers tried using Windows JVM using WINE to execute this kind of scenario. Doesnt make sense If I write to the Wine group,when I dont think I would need it.
Thanks.
20 years ago
Hi Folks,
I have RH 9 running some astronomical based applications. I need to implement a logic which is currently supported just in WIndows. Lukcily I have a Windows DLL completely based on the JNI interface standards. I would like make some calls from this DLL from my JAVA program running under Linux. Is it possible to achieve this? I mean will Sytem.loadLibrary work? If yes then could somebody pls provide me any previous experience or any document where I could find some useful information.
Most of the developers tried using Windows JVM using WINE to execute this kind of scenario. Doesnt make sense If I write to the Wine group,when I dont think I would need it.
Thanks.
20 years ago
Hi Folks,
I have RH 9 running some astronomical based applications. I need to implement a logic which is currently supported just in WIndows. Lukcily I have a Windows DLL completely based on the JNI interface standards. I would like make some calls from this DLL from my JAVA program running under Linux. Is it possible to achieve this? I mean will Sytem.loadLibrary work? If yes then could somebody pls provide me any previous experience or any document where I could find some useful information.
Most of the developers tried using Windows JVM using WINE to execute this kind of scenario. Doesnt make sense If I write to the Wine group,when I dont think I would need it.
Thanks.
20 years ago
Uffffff...I am already tensed, but am upto it. In the same context what do you think XSIL or XDF would be useful in this scenario. Both of them are used to represent the scientific datas or just writing the XML files would suffice.
20 years ago
Hi Bill,
Thanks for both the websites. I have had a look at it. Now I am facing another challenge. I understand the concepts but I dont know where to start from, I mean there is no structured way that I am able to think about. Can you suggest what could be my possible starting point for making this INterface. I think its starting with DTD's. Is it?
Thanks.
20 years ago
Hi Folks,
Very recently my Prof. gave me a new topic for implementation. The topic is "Defining an interface to Web Services for the description of Scientific experiments" . He hasnt explained me much about it but just that I have to make a generic interface so that any scietific experiment like Bio-Tubes, Telescope movements, bio-informatics experiments could easily be merged into my standard interface. Also it is generally abstract. My problem is I am new to web Services and I have no idea what he means by this.
I have just implemented Telescope movement on Web Services but I couldnt understand about this generic solution for any future scietific experiments.
Could we hold a discussion on this topic ? Please pur in your comments.Google wasnt of much help too.
Thanks.
20 years ago
Hi Bill,
Thanks for getting back!!! I am a core C programmer and recently plunged to JAVA world!!! I just got this idea but I dont know how to go for it!! Any idea of any useful class which I could use for my objective!!!
Thanks a lot!!!
20 years ago
Hello folks,
I am using Tomcat and axis for web services.
I am taking some images using a webcam which my client program suppose to display. One of the problems am facing is how pass an Image taken by the webcam using SOAP to my client program. One possible solution that I thought of is to convert the Image to a byte array and pass it and then convert back to Image at the client side. But before doing so I would like to be sure.
Did any one handle this or similar kind of issue before? Or if someone has any other idea?
Please get back!!!
Thanks in return.
20 years ago
Hi There,
I think it would be convenient this way.
I make a function call like this -
(Java_Lx200_readn(env,obj,lx200PortFD,inputStr,1,1)
where inputStr is a char array of size 2048. The same inputStr I have to use from the place I called readn().
JNIEXPORT jint JNICALL
Java_Lx200_readn(JNIEnv *env,jobject obj,jint fd,jobjectArray ptr,jint nbytes,jint sec)
{
int stat;
int nleft, nread;
nleft = nbytes;
int i;
jsize len;
jobject myobj;
char returnString[2048];
char *str;
str = returnString;
len=(*env)->GetArrayLength(env,ptr);
for (i=0;i<len;i++) {
myobj=(*env)->GetObjectArrayElement(env,ptr,i);
str=(*env)->GetStringUTFChars(env,myobj,0);
}
while (nleft > 0) {
stat = Java_Lx200_lx200stat(env,obj,fd,sec,0);
if (stat <= 0 ) break;
nread = read (fd, ptr, nleft);
if (nread <= 0) break;
nleft -= nread;
str += nread;
}
return (nbytes - nleft);
}
I hope I make some sense.
Thanks for your efforts.
Regards.
20 years ago
Hi,
"This doesnt seem to work fine" means that I am not getting the expected return value in the string. I print it in the called function and also in the calling function. Both have different values. In case of calling function it shows me junk values. I hope I make myself clear.
Thanks again.
20 years ago
Hi All,
I have a doubt about the C equivalent of char* in JNI.
I am passing a char* pointer from one JNI function call and accepting it as an jbojectArray. But it doesnt seem to work fine. Here is the snapshot .
Pls pass on your comments.Thanks.
int i;
jsize len;
jobject myobj;
char returnString[2048];
char *str = returnString;
len=(*env)->GetArrayLength(env,ptr);
for (i=0;i<len;i++) {
myobj=(*env)->GetObjectArrayElement(env,ptr,i);
str=(*env)->GetStringUTFChars(env,myobj,0);
}
20 years ago