SlideShare una empresa de Scribd logo
1 de 71
XML and co. Findik Dervis
About this presentation ,[object Object],[object Object],[object Object],[object Object]
Just a little history ...  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
HTML ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
What’s XML ?! ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The goals of XML ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Why use XML ? ,[object Object],[object Object],[object Object],[object Object],[object Object]
XML
XML : The Root ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
XML : Element ,[object Object],[object Object],[object Object],[object Object],[object Object]
Element naming rules ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
XML : Attributes ,[object Object],[object Object],[object Object],[object Object],[object Object]
Value ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
XML : Comments ,[object Object],[object Object],[object Object],[object Object]
Example
XML : The prologue ,[object Object],[object Object]
Encoding ,[object Object],[object Object]
XML : Namespaces
Textual  data ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CDATA Section ,[object Object],[object Object]
Example of CDATA
Well formed document ,[object Object],[object Object]
Valid document ,[object Object],[object Object],[object Object],[object Object]
Example ,[object Object],[object Object],[object Object]
DTD
DTD Introduction ,[object Object],[object Object]
Internal DTD ,[object Object],[object Object],[object Object],[object Object],[object Object]
Example
External DTD ,[object Object]
Example ,[object Object]
DTD : Element ,[object Object],[object Object],[object Object]
Attribute ,[object Object]
Option of  attributes ,[object Object],[object Object],[object Object]
DTD : Entity ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
General example
XML Schema
Introduction ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
DTD versus XSD ,[object Object],[object Object]
XML Schema … ,[object Object],[object Object],[object Object],[object Object],[object Object]
Reference to an XSD ,[object Object],[object Object],[object Object]
XSD : Simple types ,[object Object],[object Object],[object Object],[object Object],[object Object]
XSD : Complex types ,[object Object],[object Object]
XSD : Restrictions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Example
How to write a schema ? ,[object Object],[object Object],[object Object]
Sequence ,[object Object]
Example ,[object Object]
Attribute ,[object Object]
Include Schemas
To reusable a Schema
Example
Example
XPath
Hein … XPath ?? ,[object Object],[object Object],[object Object]
How it’s works ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Location Path Expression ,[object Object],[object Object],[object Object],[object Object]
Access Path
Path
Abbreviations Abbrevations Test Node nom child::nom @nom atribute::nom //nom /descendant-or-self::node()/ . self::node() .. parent::node()
Operators ,[object Object],[object Object],[object Object],[object Object]
Examples
XSL
XSL Language ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
What is XSLT ? ,[object Object],[object Object],[object Object],[object Object]
Namespaces XSL & XSLT  ,[object Object],[object Object],[object Object],[object Object]
Structure of XSL Document
How to join ?
Example ,[object Object]
Template ,[object Object],[object Object]
How to use ?
Example

Más contenido relacionado

La actualidad más candente (20)

DTD
DTDDTD
DTD
 
Xml schema
Xml schemaXml schema
Xml schema
 
02 xml schema
02 xml schema02 xml schema
02 xml schema
 
Dtd
DtdDtd
Dtd
 
Xml dtd
Xml dtdXml dtd
Xml dtd
 
XSD
XSDXSD
XSD
 
Xml basics
Xml basicsXml basics
Xml basics
 
Xml schema
Xml schemaXml schema
Xml schema
 
XML Presentation-2
XML Presentation-2XML Presentation-2
XML Presentation-2
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
 
XML and XPath details
XML and XPath detailsXML and XPath details
XML and XPath details
 
Xsd examples
Xsd examplesXsd examples
Xsd examples
 
Xml Presentation-1
Xml Presentation-1Xml Presentation-1
Xml Presentation-1
 
Introduction to xml schema
Introduction to xml schemaIntroduction to xml schema
Introduction to xml schema
 
4 xml namespaces and xml schema
4   xml namespaces and xml schema4   xml namespaces and xml schema
4 xml namespaces and xml schema
 
Ch2 neworder
Ch2 neworderCh2 neworder
Ch2 neworder
 
Xml Java
Xml JavaXml Java
Xml Java
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
XML and DTD
XML and DTDXML and DTD
XML and DTD
 
XML Schemas
XML SchemasXML Schemas
XML Schemas
 

Similar a Xml and Co. (20)

XML-Unit 1.ppt
XML-Unit 1.pptXML-Unit 1.ppt
XML-Unit 1.ppt
 
advDBMS_XML.pptx
advDBMS_XML.pptxadvDBMS_XML.pptx
advDBMS_XML.pptx
 
Xml
XmlXml
Xml
 
XML Schema.pptx
XML Schema.pptxXML Schema.pptx
XML Schema.pptx
 
distributed system concerned lab sessions
distributed system concerned lab sessionsdistributed system concerned lab sessions
distributed system concerned lab sessions
 
Xml
XmlXml
Xml
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
XML/XSLT
XML/XSLTXML/XSLT
XML/XSLT
 
Xml
XmlXml
Xml
 
CIS-189 Final Review
CIS-189 Final ReviewCIS-189 Final Review
CIS-189 Final Review
 
xml.pptx
xml.pptxxml.pptx
xml.pptx
 
Unit 5 xml (1)
Unit 5   xml (1)Unit 5   xml (1)
Unit 5 xml (1)
 
DATA INTEGRATION (Gaining Access to Diverse Data).ppt
DATA INTEGRATION (Gaining Access to Diverse Data).pptDATA INTEGRATION (Gaining Access to Diverse Data).ppt
DATA INTEGRATION (Gaining Access to Diverse Data).ppt
 
eXtensible Markup Language (By Dr.Hatem Mohamed)
eXtensible Markup Language (By Dr.Hatem Mohamed)eXtensible Markup Language (By Dr.Hatem Mohamed)
eXtensible Markup Language (By Dr.Hatem Mohamed)
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
Xml and DTD's
Xml and DTD'sXml and DTD's
Xml and DTD's
 
Intro to xml
Intro to xmlIntro to xml
Intro to xml
 
Xml sasidhar
Xml  sasidharXml  sasidhar
Xml sasidhar
 
Xml andweb services
Xml andweb services Xml andweb services
Xml andweb services
 
Sgml and xml
Sgml and xmlSgml and xml
Sgml and xml
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

Último (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Xml and Co.

Notas del editor

  1. DERVIS
  2. DERVIS
  3. DERVIS
  4. DERVIS
  5. DERVIS
  6. DERVIS
  7. DERVIS
  8. DERVIS
  9. DERVIS
  10. DERVIS
  11. DERVIS
  12. DERVIS
  13. DERVIS
  14. The prologue is an instruction which is between brackets and question marks, it describes the version of language XML, and we have two parameters which are optional. The firstly parameter is “encoding” which describes character sets, and the second parameter is “standalone” which describes if this do cument is standalone or no, so if it only works or no, per example when you want to use an external DTD, then you have to put “no” in standalone.
  15. Here’s two examples of encoding. It serves to define which character you want to use. Well, you have a lot of encoding type.
  16. Here, you have the namespace “fil” which define all elements which has this element belong to www.lesfilms.com, and those which have belong to www.lesdvds.com. As you can see, we can define others namespace in elements, like www.lefilm1.com or www.lefilm2.com.
  17. When you want to write a textual, you can only use letter and number, tabulation, carriage return and line feed, and space. If you want to use “smaller than”, you have to write “ampersand l t and semicolon”, or if you want to write ampersand, you have to write “ampersand a m p and semicolon”. I can’t explain all specials characters, because the list is too long.
  18. CDATA Section is a section which contains a blocks of characters with all kinds of characters of string. And should not be analyzed by the XML processor. For this, you have to between bracket your text.
  19. A document must respect syntax and simples rules, so all we saw how write a XML document, with open tag and close tag, that’s so a document where we respect the syntax. It has a lot of other rules, like “a document must contain a XML declaration”, I don’t explain all rules because it’s too long.
  20. To valid a document, firstly it has to be well formed, secondly, to do a reference to DTD, and finally to be consistent with a DTD. We will explain on later DTD.
  21. DTD means Document Type Definition, it serves to validate a document, so if each tag is correctly opened and closed, and if the XML document respects some rules. For the record, DTD has been used in SGML, same in HTML. In HTML, DTD is invisible because it’s integrated into the browser.
  22. Comme ata a dit, il y a 2 type de document DTD, interne et externe Pour l’interne, le DTD doit etre dans le document XML, et le document XML est standalone Pour déclarer le DTD interne il faut utiliser le mot clé doctype
  23. Well, you can use an external file for DTD, for this, you have to add in XML Document between prologue and root node, you have to write between brackets, exclamation marks, then DOCTYPE, then root node, then key word SYSTEM, and between apostrophe the path of the name of your file with DTD like extension. And in external file with DTD like extension, you can directly write your instructions.
  24. Here’s an example of a XML document which is validated by a DTD.
  25. Les element dans la dtd sont utilisé pour décrire les element du document XML avec leurs valeur Un élémet peut avoir avec une valeur vie, data ou autre élément Si il a d’autre éléments, il faut indiquer combien de fois les sous élément sont créer
  26. You can define attributes, for this, you have to write between brackets, exclamation mark, then key word ATTLIST, then the name of your element, then the name of your attribute, and then the type of your attribute, and if want you can add an option to your attribute. Generally, we will use CDATA like type of attribute, because it accepts all characters. And I will explain you, the options of attribute in the next slide.
  27. If you want that attribute must contain something, then you have to use the key word ‘REQUIRED’. If you want that attribute must contain an exact value, then have to use the key word ‘FIXED’, and when you write the attribute in XML document, you have to only write this value. And the last option is IMPLIED, it’s optional, if you want you can’t write, because it means that you can use an attribute or no.
  28. Les entités sont utilisé pour les caractères spéciaux ou pour eviter de répéter des données C’est une représentation symbolique des données Il y a 2 types d’entités, interne dans le document XML et externe dans le document DTD Pour utiliser il faut prendre le & suviit du nom de l’entité et pour finir le ;
  29. DERVIS
  30. DERVIS
  31. DERVIS
  32. DERVIS
  33. DERVIS
  34. DERVIS
  35. DERVIS
  36. DERVIS
  37. It’s really important, when you begin to write a schema, you have to define the prolog of your XML file and to define namespace. Then you have to declare your namespace of your schema, in this example it’s XSD, which will serve to use later.
  38. A sequence, it’s an ordered list, so par examle the list of your tags. And as you can see, when you open a tag, you have to close, it’s important, like in XML, and you can see too that for tag of schema, you have to use your namespac.
  39. I will show you an example, and I switch in french.
  40. Sure, you can have attributes, for this, it’s really simple, you have to write your namespace, then keyword « attribute », then it name and it type. And you don’t need close this tag like elements.
  41. You can include like in PHP a Schema, for this you have to use the keyword include, with its location. That’s all, and you don’t have a close tag.
  42. You can reusable a schema too, for this you have to use the keyword « include » by « redefine », and you can redefine without problems your schema.
  43. Here’s an example when we want to redefine my schema, we redefine a simple type, and we put a restriction which has a maximum to 40. Sure, don’t forget to close some tags.
  44. DERVIS
  45. DERVIS
  46. DERVIS
  47. DERVIS
  48. When you explore with XPATH, each step allows a list of child node, in this example, we can see that we begin with « carnet » then personne, and then nom, and if « nom » has a list of Nodes, with this we can have this list. And this expressions is called relative path.
  49. DERVIS
  50. DERVIS
  51. As you know, we can use spacenames, when you use for XSLT, you have to use the spacename in the first example; and when you want to use for XSL, you have to use the spacename in the second example. In this example, the namespace XSL allows to use differents keyword of XSLT, and fo allows to use differents keywords to format.
  52. Firstly, you have to write a prolog, then you have to write the first open tag, with version and its namespace, and then you have to close the open tag because XSL it’s like XML.
  53. Well, you can join a XSL Document to XML document, for this, you have to use the same prolog that the XSL Document, and then you have to add the second line which is between bracket, and between interrogation mark, and then the keyword xml-stylesheet, then href which defines the path of XSL Document, and then the type which defines a XSL Document.
  54. A template allows the differents operation on some elements, and when you want to use a template, you have to use a XPath expression
  55. When you want to use a template, you have to type the spacename followed by template, and you have an attribute which defines which elements you want to start. In this example, we begin with the node.