Wednesday, 25 November 2009
Week 9 Xpath
Today was a lesson about Xpath, It seem it is getting more complicated. Xpath is created to search XML document. Why would I want to use XML to create searchable information? I need to read more about this topic because I have spent last 2 year learning about database. Now I have to learn a new way of searching document using Xpath, am sure it has its advantage but I remain to be convinced. I know now there are different kind of mark-up language hence the name extensible, what am wondering now is how many other extensible language are in existence or is extensibility of XML is never ending.
Wednesday, 18 November 2009
Week 8 URL URI
A URI identifies a resource either by location or name. More often than not, most of us use URIs that defines a location to a resource. However, a URI does not have to specify the location of a specific representation
A URL is a URI but a URI is not a URL. A URL is a specialization of URI that defines the network location of a specific representation for a given resource.
When merging two XML File same word might have same meaning so one way to show the different and stop conflict between tags is to use Name space.
A URL is a URI but a URI is not a URL. A URL is a specialization of URI that defines the network location of a specific representation for a given resource.
When merging two XML File same word might have same meaning so one way to show the different and stop conflict between tags is to use Name space.
Week 8
Legal_Document
{
background-color: #ffffff;
font-size: 20pt;
}
Title
{
display: block;
margin-bottom: 0pt;
}
Case
{
display:none;
color: #FF0000;
font-size: 20pt;
margin-left: 0;
}
Background
{
display:none;
color: #0000FF;
font-size: 20pt;
}
Judgement ,T
{
display:block;
color: #000000;
margin-left:0pt;
}
{
background-color: #ffffff;
font-size: 20pt;
}
Title
{
display: block;
margin-bottom: 0pt;
}
Case
{
display:none;
color: #FF0000;
font-size: 20pt;
margin-left: 0;
}
Background
{
display:none;
color: #0000FF;
font-size: 20pt;
}
Judgement ,T
{
display:block;
color: #000000;
margin-left:0pt;
}
Wednesday, 4 November 2009
week 6
1.
DTD define legal Elements, attributes, nesting and all other layout structure for XML document, which the xml have to follow to be a validated xml document. If xml implement DTD and does not follow the structure it will not be validate even if it is well formed.
2. If XML document contains Arabic characters, the declaration of XML must start with
Because UTF-8 support Arabic characters
3. Yes it is possible to use binary in XML document. As with all elements the Xml tag which holds the binary data has to be informed the type of data which is been passed to parser and all ambiguous characters must be removed from the binary code to eliminate confusion such as “<”. It is not always a good idea to have a binary code within XML document speciality if the binary code is big. The other way around this is to have external binary graphic file which you can be access by using Binary DATA as objects.
Example how to access binary fine with XML
< picture >
<picture id="ViaValdres2">
<caption>valley </caption >
<full-image width="1280" height="960"> ViaValdres2.jpg </full-image>
<image width="740" height="555"> ViaValdres2p.jpg</image>
<small-image width="240" height="180"> ViaValdres2t.jpg< /small-image>
</picture>
Longer Questions
1 a
Because the word “with” is not a Russian phrase and the document is design to translate English phrase to Russian not the other way around.
B
< ? XML version=”1.0”?
< —This XML document hold English phrase and its Russian equivalent-->
<!DOCTYPE Phrasebook [
<! ELEMENT Phrasebook (Section)>
<! ELEMENT Section (Section-Title, Phrase-Group)>
<! ELEMENT Section-Title(#PCDATA)>] >
DTD define legal Elements, attributes, nesting and all other layout structure for XML document, which the xml have to follow to be a validated xml document. If xml implement DTD and does not follow the structure it will not be validate even if it is well formed.
2. If XML document contains Arabic characters, the declaration of XML must start with
Because UTF-8 support Arabic characters
3. Yes it is possible to use binary in XML document. As with all elements the Xml tag which holds the binary data has to be informed the type of data which is been passed to parser and all ambiguous characters must be removed from the binary code to eliminate confusion such as “<”. It is not always a good idea to have a binary code within XML document speciality if the binary code is big. The other way around this is to have external binary graphic file which you can be access by using Binary DATA as objects.
Example how to access binary fine with XML
< picture >
<picture id="ViaValdres2">
<caption>valley </caption >
<full-image width="1280" height="960"> ViaValdres2.jpg </full-image>
<image width="740" height="555"> ViaValdres2p.jpg</image>
<small-image width="240" height="180"> ViaValdres2t.jpg< /small-image>
</picture>
Longer Questions
1 a
Because the word “with” is not a Russian phrase and the document is design to translate English phrase to Russian not the other way around.
B
< ? XML version=”1.0”?
< —This XML document hold English phrase and its Russian equivalent-->
<!DOCTYPE Phrasebook [
<! ELEMENT Phrasebook (Section)>
<! ELEMENT Section (Section-Title, Phrase-Group)>
<! ELEMENT Section-Title(#PCDATA)>] >
Subscribe to:
Comments (Atom)