The exercise is difficult
My code based a lot on the code of Mr.Dernlt , I hope its still okie :D cos without it Im not gonna make it on time.
The complex DataType LengthObj contains 2 variable types : Double(value) and String(unit)
3 Operation
to_meters : convert LengthObj to meters
Convert : convert LengthObj to meters and then convert to target unit
ConvertArray : convert all diffenrent LengthObj to meters and then return the sum of all LengthObj in target unit
Time for some sleep....
Wednesday, 17 December 2008
Tuesday, 16 December 2008
A6 : Webservice - The Idea
Read through the Scripts
Its gonna be a hard Aufgabe for me.
I already had the Idea in mind.First I wanted to make a Currency Converter but then I saw someone already made it so I changed my plan and will make an Unit Converter.
A lot still need to be done...
Its gonna be a hard Aufgabe for me.
I already had the Idea in mind.First I wanted to make a Currency Converter but then I saw someone already made it so I changed my plan and will make an Unit Converter.
A lot still need to be done...
Einzelaufgabe A5: Schema/XSLT
I chosed the Teil A : Schema
Despite meeting some troubles , I still finished the XML/DTD Aufgaben and I felt they are not too difficult for me.That's why I chosed teil A
But I was quite wrong this time 'cos It took much more longer to finish this than I thought
After hundreds of times trying without success , I tried a convert tools(XMLSpy) to look for a better schema structure for my DTD.I know I should not use such a tool but well I did finish the Aufgabe by myself and not copy/paste the result from the tool.The result generated from the tool is a little weird but at least it gave me a better overview how a Schema should look like.
And finally I finished it successfully.
I uploaded the Schema but If I have time I will fix it a little.I want to put some Restriction on the Zeit-Element but because it formated as "15h30" ,I dont know how to define it.Maybe I will need to edit my XML as well.
Despite meeting some troubles , I still finished the XML/DTD Aufgaben and I felt they are not too difficult for me.That's why I chosed teil A
But I was quite wrong this time 'cos It took much more longer to finish this than I thought
After hundreds of times trying without success , I tried a convert tools(XMLSpy) to look for a better schema structure for my DTD.I know I should not use such a tool but well I did finish the Aufgabe by myself and not copy/paste the result from the tool.The result generated from the tool is a little weird but at least it gave me a better overview how a Schema should look like.
And finally I finished it successfully.
I uploaded the Schema but If I have time I will fix it a little.I want to put some Restriction on the Zeit-Element but because it formated as "15h30" ,I dont know how to define it.Maybe I will need to edit my XML as well.
Tuesday, 2 December 2008
XPath
XPath may look not so hard but in fact it's more complicated than I thought
I had to spend quite some time to make it work
I met some funny mistakes as well.For example I mistyped the word "legislaturperiode" more than once and was having a hard time to find out where the mistake was
Finally I finished it.
I had to spend quite some time to make it work
I met some funny mistakes as well.For example I mistyped the word "legislaturperiode" more than once and was having a hard time to find out where the mistake was
Finally I finished it.
Subscribe to:
Posts (Atom)