XML. XML Namespaces, XML Schema, XSLT

Size: px
Start display at page:

Download "XML. XML Namespaces, XML Schema, XSLT"

Transcription

1 XML XML Namespaces, XML Schema, XSLT

2 Contents XML Namespaces... 2 Namespace Prefixes and Declaration... 3 Multiple Namespace Declarations... 4 Declaring Namespaces in the Root Element... 5 Default Namespaces... 6 XML Schema Overview... 7 Associating XML with a Schema... 8 Simple and Built-in Types... 9 Complex Types Element Declarations Attribute Declarations Choices Named Types and Anonymous Types XSL Transformation (XSLT) XPath Basics xsl:stylesheet xsl:template xsl:value-of xsl:apply-templates xsl:output XML Namespaces Exercises XML Schema Exercises XSLT Exercises

3 XML Namespaces You can use namespaces to declare that your document is using a vocabulary from a different technology. o A program that understands the meaning of a particular namespace name can then identify and make use of the prefixed elements from the referenced vocabulary. o We will investigate examples of using namespaces for this purpose when we discuss XSLT and XML Schema. Another use of namespaces is to avoid naming ambiguities in your elements and attributes. o Often, a similar concept might warrant a similar tag name in multiple locations of a document. This can be avoided when first creating a model of XML for your document. However, when building up XML from smaller existing XML fragments, this issue is more likely to occur. o Name collisions can occur if two XML fragments each contain a tag with the same name. 2

4 Namespace Prefixes and Declaration Every element or attribute that should be associated with a namespace should be given a prefix. <emp:title>librarian</emp:title> o The part before the colon is called the prefix. o The part after the colon is called the local name. o The whole tag, including the prefix and local name, is referred to as the qualified name or qname. The prefix must be declared with the reserved xmlns attribute. <emp:staff xmlns:emp=" o This associates the prefixed elements with the quoted namespace name. Since Uniform Resource Identifiers (URIs) are unique across the Internet, they are the recommended choice for namespace names. o The namespace name should uniquely identify the context in which the tags have meaning. o The URI does not have to actually point to a real resource. 3

5 Multiple Namespace Declarations You are allowed to declare multiple namespaces within the same document. o Each namespace declaration is made with the reserved xmlns attribute and a unique prefix. The element and any attributes at the level of a namespace declaration do not automatically belong to that namespace. They can use the prefix to qualify themselves to the namespace. Descendant elements and their attributes do not automatically belong to that namespace, but they too can use the prefix. 4

6 Declaring Namespaces in the Root Element It is common to move most, if not all, namespace declarations to the root element. o This allows any element or attribute within the document to use the declared prefix. o It also simplifies maintenance. A given namespace name is only declared once. It is easy to find the namespace declarations. It is not a requirement to make the root element belong to any of the namespaces that are declared in its attributes. o A non-prefixed element does not belong to any namespace. 5

7 Default Namespaces You can declare a default namespace for an element and its descendants. <library xmlns=" o The element and its descendants will be considered part of the given namespace, with no need for a prefix. o The default namespace is only applicable to non-prefixed elements. Non-prefixed attributes do not belong to the default namespace. An element is considered to be qualified if it belongs to a namespace. o With default namespaces, it is now possible to have qualified, non- prefixed elements. 6

8 XML Schema Overview XML Schema is a W3C specification for validating the content of an XML document. Schema documents are modeled in XML syntax. o The schema must be well-formed. Associate your schema with the namespace name: By convention, the prefix xsd or xs is used. Any element or attribute within the document that uses the prefix will be associated with the schema vocabulary, as opposed to the document author's vocabulary. Every schema must define a root element named schema. Within the root element, there will be a variety of subelements, including element, complextype, and simpletype. All children of the schema element are called globals. o Any global element is eligible to be the root element of the XML document to be validated. o Only globals can be referenced from elsewhere within the document. 7

9 Associating XML with a Schema An XML document can explicitly indicate when it can be validated against an XML Schema. o The XML Schema is an external document and is often referred to as the schema definition file. If the XML document to be validated (the instance document) does not use a namespace, then associating it with a schema is simple. o Declare the XMLSchema-instance namespace. o Define the nonamespaceschemalocation attribute to the URI of the schema document. <rootelement xmlns:xsi=" xsi:nonamespaceschemalocation="schemadocument.xsd"> 8

10 Simple and Built-in Types A simple type can only contain numbers and strings, but not subelements nor attributes. There are a number of simple types that are built in to the schema definition. o string, int, decimal, and date are all examples of another simple type. o An element that is of type int, for example, has a value between and Use the restriction element to derive a custom simple type from another simple type. o The base attribute specifies which datatype will be restricted. The datatype can be a built-in type or another simple type defined o elsewhere. Add facet subelements to the restriction element. A facet is a kind of restriction that is applied to a datatype. 9

11 Complex Types A complex type can contain subelements and/or attributes. Use the complextype element to model a complex type. <xsd:complextype name="patienttype"> <xsd:sequence> <xsd:element name="fname" type="xsd:string" /> <xsd:element name="lname" type="xsd:string" /> </xsd:sequence> <xsd:attribute name="status" type="xsd:string" /> </xsd:complextype> Add each subelement within the complex type as the child of a sequence, choice, or all element. o The order of each element within the sequence is the order in which they must appear in the resulting document. o If order does not matter, use all instead of sequence. o Use choice to model a choice of one element. A valid instance document is limited to only one of the child elements of the choice tag. Model attributes by using the attribute element. o Attributes are defined after all element definitions. To model an empty element, omit the sequence/choice/all tags. o Use the attribute element as before to specify attributes for the empty element. 10

12 Element Declarations Declare an element using the element named element. <xsd:element name="zipcode" type="xsd:string" /> o The type can be any simple or complex type. Use the ref attribute to refer to a global element that was defined elsewhere. <xsd:element ref="zipcode" /> o Global elements are child declarations of a schema. To specify how many times an element may occur, use minoccurs or maxoccurs. <xsd:element name="street" type="xsd:string" minoccurs="1" maxoccurs="2"/> o By default, minoccurs is 1 and maxoccurs is 1. o You can use unbounded for maxoccurs to specify that there may be unlimited occurrences of this element. Use the default attribute to specify a default value for the element if it appears in the document without any content (an empty element). <xsd:element name="name" type="xsd:string" default="john Doe"/> Use fixed to specify that an element must contain a particular value. <xsd:element name="state" type="xsd:string" fixed="co"/> 11

13 Attribute Declarations Declare an attribute using the attribute element. <xsd:attribute name="info" type="xsd:string" /> o Since attributes cannot contain subelements or attributes, the type can only be a simple type. o Place the attribute declaration at the end of a complextype declaration. Use default and fixed attributes similar to how they are used for elements. o Note that a default value for an attribute is inserted any time the attribute is omitted, whereas for an element it is only inserted when that element is empty. Instead of minoccurs or maxoccurs, declare the use attribute to handle occurrence constraints. o use="required" specifies that the attribute must be in the XML document. o use="optional" says that the attribute may or may not occur in the XML document. o use="prohibited" means that the attribute may not be in the XML document. o If an attribute has a default value, then it can only specify the value of optional for use. 12

14 Choices It may be necessary to specify a set of choices for the value of an element or attribute. o Use enumeration facets to specify the set of choices. <xsd:simpletype name="housetype"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="ranch"/> <xsd:enumeration value="two-story"/> <xsd:enumeration value="bi-level"/> </xsd:restriction> </xsd:simpletype> 13

15 Named Types and Anonymous Types You can create schemas so that each complex type or derived simple type has a name. o These are referred to as named types. o Each named type is referenced by using type= syntax in elements and attributes. o Named types can get out of control if a schema has many types that are referenced only once. You can use anonymous types as an alternative. o Anonymous types do not include names, nor do they need to be referenced. o The lack of a name or type= syntax identifies an anonymous type. o An anonymous type uses containment to model both complex and derived simple types. o Since anonymous types don't have names, they can't be referenced from elsewhere. 14

16 XSL Transformation (XSLT) Extensible Stylesheet Language Transformation (XSLT) is about transforming XML documents into other other formats. o An XSLT stylesheet is an XML document that spells out the rules of a particular transformation. An XSLT processor parses the XML document, applies the rules of the stylesheet to convert the document. o This can be another XML document, an HTML document, or plain text. XSL-FO is an XML technology that can be leveraged to produce more complex types of documents, like PDF or RTF. Stylesheet elements must be associated with the namespace /XSL/Transform. A processor can be applied directly within a web browser. o The browser downloads the XML source, applies the stylesheet, and displays the result. o Browsers recognize the xml-stylesheet processing instruction, and use it to associate the XML file with a particular stylesheet. <?xml-stylesheet type="text/xsl" href="example.xsl"?> 15

17 XPath Basics Many XSLT elements use XPath to specify the pattern for matching or selecting a node or group of nodes. XPath views an XML document as a tree with different node types, and uses different constructs to select them. o Use / to identify the root node, which is the root of the source tree, not the root element. o Use the element name to identify an element. o Identify an attribute o Select all elements at the specified point in the tree with * and all attributes XPath patterns can include navigation of the document's tree. o Pattern matches start from the current node location or context. o A leading slash (/) forces the search from the root node and other slashes act as level separators. o. matches the current node and.. matches the parent node. o acts as an "or," allowing you to select nodes matching any of the specified patterns. A predicate allows conditions inside of a trailing [ ] to further limit the collection of nodes matched by the expression. 16

18 xsl:stylesheet The root element of a stylesheet is xsl:stylesheet. <xsl:stylesheet version="2.0" xmlns:xsl=" o Include the namespace declaration. xsl is the namespace prefix by convention only. o A version attribute is required. Many elements are allowed as children of xsl:stylesheet. o These are called top-level elements and can include: o import and include elements to use other stylesheets o An output element to specify the type of output document o template elements Other than having any import children occur first, ordering of top-level elements is arbitrary. The XSLT namespace offers the alternative root element xsl:transform. o There is no difference between xsl:stylesheet and xsl:transform. 17

19 xsl:template A template is an XSLT element that defines a translation rule. o Many templates can exist within the same document. Define a template with the xsl:template element. <xsl:template match="pattern"> content </xsl:template> o Use the match attribute to define an XPath expression which indicates the nodes to which this template could apply. o Non-XSLT element and text content are moved into the result tree. o XSLT child element content is processed according to the element rules. Most stylesheets have at least one xsl:template element the root template. o The value of the match attribute is /, which is the XPath syntax for the root node. <xsl:template match="/"> 18

20 xsl:value-of Use xsl:value-of to move XML source text to the result tree. o This will be a subelement of xsl:template. o The select attribute specifies an XPath pattern to the element of interest. <xsl:value-of select="element-pattern"/> The value of the select attribute is an XPath expression starting from the perspective of the template that is being processed. o If the selected element contains character data, that string is returned. o If the selected element contains additional subelements, a concatenation of all descendant character data is produced. Depending on the nature of your XML, you might need to employ the XPath text() function to navigate directly to an element's text node. <xsl:value-of select="element-pattern/text()"/> o Retrieve attribute values by prepending character to the attribute name within the pattern. <xsl:value-of select="attribute-path/@attribute-name"/> 19

21 xsl:apply-templates To process a template other than the root template, use xsl:apply-templates. o Use xsl:apply-templates from within an xsl:template. Use the select attribute to define an XPath expression which indicates the nodes that need processing through another template. <xsl:apply-templates select="mypattern"/> o If the select attribute is omitted, it is equivalent to select="node()". When the XSLT processor identifies an xsl:apply-templates element, it applies any templates that match the select attribute. <xsl:template match="matchingpattern"> actions </xsl:template> o When there are multiple nodes that match the selection in the source tree, the processor repeats the template for each node. The xsl:apply-templates facility provides a motivation for having multiple templates in your stylesheet. o Template order is arbitrary. o Each template will have its own default node context from which further XPath evaluations begin. 20

22 xsl:output Standard XSLT processors can create XML, HTML, or text output. Specify the output type with the xsl:output element and the respective value on the method attribute. <xsl:output method="xml"/> xsl:output needs to be a top-level XSLT element. Without an xsl:output element, the default document type will be XML. However, if the result document begins with html, the default document type will be HTML. When creating an HTML document, the stylesheet needs to use XHTML. o XHTML is well-formed, keeping the stylesheet well-formed. o The resulting document, however, will be HTML, not XHTML. If you want the resulting document to be XHTML, then set the xsl:output element attribute value to "xml". 21

23 XML Namespaces Exercises 5 to 15 minutes 1. Change the document homepage.xml so that all news elements belong to a namespace. 2. Update your document from 1. by adding a namespace to all sports elements. 3. Update your document from 2. so that it uses a default namespace for all tags that do not currently belong to a namespace. 22

24 XML Schema Exercises 20 to 30 minutes 1. Define the nonamespaceschemalocation attribute to the URI of patient.xml and validate the document. <?xml version='1.0'?> <patient xmlns:xsi=" xsi:nonamespaceschemalocation="patient.xsd"> Sam Smith </patient> 2. Add an element medication with subelements id and drug to patient.xml and validate the document. Note the error message that occurs.what is wrong? <?xml version='1.0'?> <patient xmlns:xsi=" xsi:nonamespaceschemalocation="patient.xsd"> <id> </id> <name>sam Smith</name> <medication> <id>med4512</id> <drug>aspirin</drug> </medication> </patient> 23

25 3. Declare 2 complex types PatientType and MedicationType to patient.xsd and change the type of the patient element to PatientType. Validate patient.xml. <?xml version='1.0'?> <xsd:schema xmlns:xsd=" <xsd:element name="patient" type="patienttype" /> <xsd:complextype name="patienttype"> <xsd:sequence> <xsd:element name="id" type="xsd:string" /> <xsd:element name="name" type="xsd:string" /> <xsd:element name="medication" type="medicationtype"/> </xsd:sequence> </xsd:complextype> <xsd:complextype name="medicationtype"> <xsd:all> <xsd:element name="id" type="xsd:string" /> <xsd:element name="drug" type="xsd:string" /> </xsd:all> </xsd:complextype> </xsd:schema> 4. Declare a global element named id of type xsd:string in patient.xsd and refer all other id elements to this global element. Also specify how many times the medication element may occur using minoccurs and maxoccurs. Validate patient.xml. <?xml version='1.0'?> <xsd:schema xmlns:xsd=" <xsd:element name="patient" type="patienttype" /> <xsd:element name="id" type="xsd:string" /> <xsd:complextype name="patienttype"> <xsd:sequence> <xsd:element ref="id"/> <xsd:element name="name" type="xsd:string" /> <xsd:element name="medication" type="medicationtype" minoccurs="0" maxoccurs="unbounded" /> </xsd:sequence> </xsd:complextype> <xsd:complextype name="medicationtype"> <xsd:sequence> <xsd:element ref="id"/> <xsd:element name="drug" type="xsd:string" /> </xsd:sequence> </xsd:complextype> </xsd:schema> 24

26 5. Add an attribute named condition with value fair to the root element patient in patient.xml. Declare an attribute named condition in patient.xsd of type xsd:string and add attributes use and default. Validate patient.xml. patient.xml <?xml version='1.0'?> <patient xmlns:xsi=" xsi:nonamespaceschemalocation="patient.xsd" condition="fair"> <id> </id> <name>sam Smith</name> <medication> <id>med4512</id> <drug>aspirin</drug> </medication> <medication> <id>med4598</id> <drug>ibuprofen</drug> </medication> </patient> patient.xsd <?xml version='1.0'?> <xsd:schema xmlns:xsd=" <xsd:element name="patient" type="patienttype" /> <xsd:element name="id" type="xsd:string" /> <xsd:complextype name="patienttype"> <xsd:sequence> <xsd:element ref="id"/> <xsd:element name="name" type="xsd:string" /> <xsd:element name="medication" type="medicationtype" minoccurs="0" maxoccurs="unbounded" /> </xsd:sequence> <xsd:attribute name="condition" type="xsd:string" use="optional" default="critical" /> </xsd:complextype> <xsd:complextype name="medicationtype"> <xsd:sequence> <xsd:element ref="id"/> <xsd:element name="drug" type="xsd:string" /> </xsd:sequence> </xsd:complextype> </xsd:schema> 25

27 6. Specify a set of choices for the condition attribute by creating a simpletype named ConditionsType in patient.xsd. Validate patient.xml <?xml version='1.0'?> <xsd:schema xmlns:xsd=" <xsd:element name="patient" type="patienttype" /> <xsd:element name="id" type="xsd:string" /> <xsd:complextype name="patienttype"> <xsd:sequence> <xsd:element ref="id"/> <xsd:element name="name" type="xsd:string" /> <xsd:element name="medication" type="medicationtype" minoccurs="0" maxoccurs="unbounded" /> </xsd:sequence> <xsd:attribute name="condition" type="conditionstype" use="optional" default="critical" /> </xsd:complextype> <xsd:simpletype name="conditionstype"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="critical" /> <xsd:enumeration value="serious" /> <xsd:enumeration value="fair" /> <xsd:enumeration value="good" /> </xsd:restriction> </xsd:simpletype> <xsd:complextype name="medicationtype"> <xsd:sequence> <xsd:element ref="id"/> <xsd:element name="drug" type="xsd:string" /> </xsd:sequence> </xsd:complextype> </xsd:schema> 7. Update patient.xml so that each medication also has dosage information. Include amount (number of pills to take), units (i.e. 100mg), start date, frequency (how many times to take the medication each day), and duration. 8. Modify patient.xsd to validate your XML. 9. Create a new file named person.xsd and build a schema to model a person. Include first name, last name, middle initial, address, and phone. 10. Write a valid XML document named person.xml that uses your schema defined in person.xsd. Challenge 11. Write a schema in a new file named invoice.xsd to describe an invoice: 26

28 a. The invoice should have a company name, date, shipping method, customer information, payment information, and one or more items. b. For the shipping method, use attributes to specify the two options: UPS or FedEx. Make UPS the default. c. The customer information should include a customer id, optional firstname, lastname, address, and zero or more area code and phone number combinations. For every phone number, include an attribute that describes it, using one of the following: home, work, fax, pager, or cell. The default is home. d. The payment information should allow for either checks or credit cards. A check should have an optional attribute for the check number. A credit card should have an attribute for the credit card type and child elements for the card number and the expiration date. The credit card type must be given and can only be one of the following: Visa, AmEx, or MC. e. Finally, each item has a quantity, part number and unit price. Also add an optional attribute to the item for a description of the item. 12. Modify invoice.xml so that it validates against the schema you created in

29 28

30 XSLT Exercises 15 to 25 minutes 1. Add a stylesheet element to the garage.xsl document: <?xml version="1.0"?> <xsl:stylesheet version="2.0" xmlns:xsl=" <html><body><div align="center"> <h1>stuff in my Garage</h1> <table border="1"> <tr> <td>year</td><td>make</td><td>model</td><td>miles</td> </tr> </table> </div></body></html> </xsl:stylesheet> 2. Add the root template to your garage.xsl document. Then process garage.xml by opening it in a browser or Notepad++. Note that although we are transforming the garage XML data, none of the actual XML data is included in the output at this point. <?xml version="1.0"?> <xsl:stylesheet version="2.0" xmlns:xsl=" <xsl:template match="/"> <html><body><div align="center"> <h1>stuff in my Garage</h1> <table border="1"> <tr> <td>year</td><td>make</td><td>model</td><td>miles</td> </tr> </table> </div></body></html> </xsl:template> </xsl:stylesheet> 29

31 3. Add multiple xsl:value-of elements to garage.xsl in order to extract the text of the year, make, model, and miles associated with the cars of your garage. Do this within the root template. Because the context of the root template is the root node, the XPath expressions will have to include the navigation through the garage and car elements. <?xml version="1.0"?> <xsl:stylesheet version="2.0" xmlns:xsl=" <xsl:template match="/"> <html><body><div align="center"> <h1>stuff in my Garage</h1> <table border="1"> <tr> <td>year</td><td>make</td><td>model</td><td>miles</td> </tr> <tr> <td><xsl:value-of select="garage/car/year"/></td> <td><xsl:value-of select="garage/car/make"/></td> <td><xsl:value-of select="garage/car/model"/></td> <td><xsl:value-of </tr> </table> </div></body></html> </xsl:template> </xsl:stylesheet> Refresh your browser or run the transformation again and note the result. You should observe that with the XSLT rules we have available at this point, we are only extracting the data associated with the first car of the garage. Clearly, we will want to find a way to work with all of the vehicles in the garage. 30

32 4. Edit garage.xsl to create a new template that would handle each car or van that is a subelement of the garage. This template should extract the values of the car or van into a row of an HTML table. Further edit the same file to update the root template. The root template should start the table, including the header row, and then apply the new template for each car and van. <?xml version="1.0"?> <xsl:stylesheet version="2.0" xmlns:xsl=" <xsl:template match="/"> <html><body><div align="center"> <h1>stuff in my Garage</h1> <table border="1"> <tr> <td>year</td><td>make</td><td>model</td><td>miles</td> </tr> <xsl:apply-templates select="garage/*"/> </table> </div></body></html> <xsl:template match="car van"> <tr> <td><xsl:value-of select="garage/car/year"/></td> <td><xsl:value-of select="garage/car/make"/></td> <td><xsl:value-of select="garage/car/model"/></td> <td><xsl:value-of select="garage/car/@miles"/></td> </tr> </xsl:template> </xsl:stylesheet> Run the transformation again by refreshing your browser and note that all of the garaged cars and vans are included as part of the output. 5. Transform menu.xml into an HTML document that presents a grocery list of ingredients. Challenge 6. Transform menu.xml into an HTML document that presents a recipe list in tables. 7. Transform menu.xml into an HTML document that presents a menu for our customers. 31

CountryData Technologies for Data Exchange. Introduction to XML

CountryData Technologies for Data Exchange. Introduction to XML CountryData Technologies for Data Exchange Introduction to XML What is XML? EXtensible Markup Language Format is similar to HTML, but XML deals with data structures, while HTML is about presentation Open

More information

HTML vs. XML In the case of HTML, browsers have been taught how to ignore invalid HTML such as the <mymadeuptag> element and generally do their best

HTML vs. XML In the case of HTML, browsers have been taught how to ignore invalid HTML such as the <mymadeuptag> element and generally do their best 1 2 HTML vs. XML In the case of HTML, browsers have been taught how to ignore invalid HTML such as the element and generally do their best when dealing with badly placed HTML elements. The

More information

More XML Schemas, XSLT, Intro to PHP. CS174 Chris Pollett Oct 15, 2007.

More XML Schemas, XSLT, Intro to PHP. CS174 Chris Pollett Oct 15, 2007. More XML Schemas, XSLT, Intro to PHP CS174 Chris Pollett Oct 15, 2007. Outline XML Schemas XSLT PHP Overview of data types There are two categories of data types in XML Schemas: simple types -- which are

More information

XML DTDs and Namespaces. CS174 Chris Pollett Oct 3, 2007.

XML DTDs and Namespaces. CS174 Chris Pollett Oct 3, 2007. XML DTDs and Namespaces CS174 Chris Pollett Oct 3, 2007. Outline Internal versus External DTDs Namespaces XML Schemas Internal versus External DTDs There are two ways to associate a DTD with an XML document:

More information

7.1 Introduction. 7.1 Introduction (continued) - Problem with using SGML: - SGML is a meta-markup language

7.1 Introduction. 7.1 Introduction (continued) - Problem with using SGML: - SGML is a meta-markup language 7.1 Introduction - SGML is a meta-markup language - Developed in the early 1980s; ISO std. In 1986 - HTML was developed using SGML in the early 1990s - specifically for Web documents - Two problems with

More information

Chapter 3 Brief Overview of XML

Chapter 3 Brief Overview of XML Slide 3.1 Web Serv vices: Princ ciples & Te echno ology Chapter 3 Brief Overview of XML Mike P. Papazoglou & mikep@uvt.nl Slide 3.2 Topics XML document structure XML schemas reuse Document navigation and

More information

Information Systems. DTD and XML Schema. Nikolaj Popov

Information Systems. DTD and XML Schema. Nikolaj Popov Information Systems DTD and XML Schema Nikolaj Popov Research Institute for Symbolic Computation Johannes Kepler University of Linz, Austria popov@risc.uni-linz.ac.at Outline DTDs Document Type Declarations

More information

Session [2] Information Modeling with XSD and DTD

Session [2] Information Modeling with XSD and DTD Session [2] Information Modeling with XSD and DTD September 12, 2000 Horst Rechner Q&A from Session [1] HTML without XML See Code HDBMS vs. RDBMS What does XDR mean? XML-Data Reduced Utilized in Biztalk

More information

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name EXAM IN SEMI-STRUCTURED DATA 184.705 28. 10. 2016 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will

More information

XML. COSC Dr. Ramon Lawrence. An attribute is a name-value pair declared inside an element. Comments. Page 3. COSC Dr.

XML. COSC Dr. Ramon Lawrence. An attribute is a name-value pair declared inside an element. Comments. Page 3. COSC Dr. COSC 304 Introduction to Database Systems XML Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca XML Extensible Markup Language (XML) is a markup language that allows for

More information

DTD MIGRATION TO W3C SCHEMA

DTD MIGRATION TO W3C SCHEMA Chapter 1 Schema Introduction The XML technical specification identified a standard for writing a schema (i.e., an information model) for XML called a document type definition (DTD). 1 DTDs were a carryover

More information

Part 2: XML and Data Management Chapter 6: Overview of XML

Part 2: XML and Data Management Chapter 6: Overview of XML Part 2: XML and Data Management Chapter 6: Overview of XML Prof. Dr. Stefan Böttcher 6. Overview of the XML standards: XML, DTD, XML Schema 7. Navigation in XML documents: XML axes, DOM, SAX, XPath, Tree

More information

Week 2: Lecture Notes. DTDs and XML Schemas

Week 2: Lecture Notes. DTDs and XML Schemas Week 2: Lecture Notes DTDs and XML Schemas In Week 1, we looked at the structure of an XML document and how to write XML. I trust you have all decided on the editor you prefer. If not, I continue to recommend

More information

The main problem of DTD s...

The main problem of DTD s... The main problem of DTD s... They are not written in XML! Solution: Another XML-based standard: XML Schema For more info see: http://www.w3.org/xml/schema XML Schema (W3C) Thanks to Jussi Pohjolainen TAMK

More information

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name EXAM IN SEMI-STRUCTURED DATA 184.705 12. 01. 2016 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will

More information

XML. Objectives. Duration. Audience. Pre-Requisites

XML. Objectives. Duration. Audience. Pre-Requisites XML XML - extensible Markup Language is a family of standardized data formats. XML is used for data transmission and storage. Common applications of XML include business to business transactions, web services

More information

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name EXAM IN SEMI-STRUCTURED DATA 184.705 24. 6. 2015 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will not

More information

Querying XML Data. Querying XML has two components. Selecting data. Construct output, or transform data

Querying XML Data. Querying XML has two components. Selecting data. Construct output, or transform data Querying XML Data Querying XML has two components Selecting data pattern matching on structural & path properties typical selection conditions Construct output, or transform data construct new elements

More information

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name EXAM IN SEMI-STRUCTURED DATA 184.705 23. 10. 2015 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will

More information

Introduction to XML DTD

Introduction to XML DTD Introduction to XML DTD What is a DTD? A DTD is usually a file (or several files to be used together) which contains a formal definition of a particular type of document. This sets out what names can be

More information

HR-XML Schema Extension Recommendation, 2003 February 26

HR-XML Schema Extension Recommendation, 2003 February 26 HR-XML Schema Extension Recommendation, 2003 February 26 This version: HRXMLExtension.doc Previous version: HRXMLExtension-1_0.doc Editor: Paul Kiel, HR-XML, paul@hr-xml.org Authors: Paul Kiel, HR-XML,

More information

IBM. XML and Related Technologies Dumps Braindumps Real Questions Practice Test dumps free

IBM. XML and Related Technologies Dumps Braindumps Real Questions Practice Test dumps free 000-141 Dumps 000-141 Braindumps 000-141 Real Questions 000-141 Practice Test 000-141 dumps free IBM 000-141 XML and Related Technologies http://killexams.com/pass4sure/exam-detail/000-141 collections

More information

A namespace prefix is defined with a xmlns attribute using the syntax xmlns:prefix="uri".

A namespace prefix is defined with a xmlns attribute using the syntax xmlns:prefix=uri. Question 1 XML Syntax and Basics (a) What are 'namespaces' used for in relation to XML and how are they applied to an XML document?(2 marks) Namespaces are used to avoid element name conflicts when using/mixing

More information

XSLT (part I) Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 22

XSLT (part I) Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 22 1 / 22 XSLT (part I) Mario Alviano University of Calabria, Italy A.Y. 2017/2018 Outline 2 / 22 1 Introduction 2 Templates 3 Attributes 4 Copy of elements 5 Exercises 4 / 22 What is XSLT? XSLT is a (Turing

More information

XML Applications. Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena

XML Applications. Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena XML Applications Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena Outline XHTML XML Schema XSL & XSLT Other XML Applications 2 XHTML HTML vs. XML HTML Presentation

More information

XSL Languages. Adding styles to HTML elements are simple. Telling a browser to display an element in a special font or color, is easy with CSS.

XSL Languages. Adding styles to HTML elements are simple. Telling a browser to display an element in a special font or color, is easy with CSS. XSL Languages It started with XSL and ended up with XSLT, XPath, and XSL-FO. It Started with XSL XSL stands for EXtensible Stylesheet Language. The World Wide Web Consortium (W3C) started to develop XSL

More information

EMERGING TECHNOLOGIES. XML Documents and Schemas for XML documents

EMERGING TECHNOLOGIES. XML Documents and Schemas for XML documents EMERGING TECHNOLOGIES XML Documents and Schemas for XML documents Outline 1. Introduction 2. Structure of XML data 3. XML Document Schema 3.1. Document Type Definition (DTD) 3.2. XMLSchema 4. Data Model

More information

Gestão e Tratamento de Informação

Gestão e Tratamento de Informação Departamento de Engenharia Informática 2013/2014 Gestão e Tratamento de Informação 1st Project Deadline at 25 Oct. 2013 :: Online submission at IST/Fénix The SIGMOD Record 1 journal is a quarterly publication

More information

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1 Slide 27-1 Chapter 27 XML: Extensible Markup Language Chapter Outline Introduction Structured, Semi structured, and Unstructured Data. XML Hierarchical (Tree) Data Model. XML Documents, DTD, and XML Schema.

More information

XML Extensible Markup Language

XML Extensible Markup Language XML Extensible Markup Language Generic format for structured representation of data. DD1335 (Lecture 9) Basic Internet Programming Spring 2010 1 / 34 XML Extensible Markup Language Generic format for structured

More information

CS/INFO 330: Applied Database Systems

CS/INFO 330: Applied Database Systems CS/INFO 330: Applied Database Systems XML Schema Johannes Gehrke October 31, 2005 Annoucements Design document due on Friday Updated slides are on the website This week: Today: XMLSchema Wednesday: Introduction

More information

WHITE PAPER. Query XML Data Directly from SQL Server Abstract. DilMad Enterprises, Inc. Whitepaper Page 1 of 32

WHITE PAPER. Query XML Data Directly from SQL Server Abstract. DilMad Enterprises, Inc. Whitepaper Page 1 of 32 WHITE PAPER Query XML Data Directly from SQL Server 2000 By: Travis Vandersypen, President of DilMad Enterprises, Inc. Abstract XML is quickly becoming the preferred method of passing information, not

More information

XML (4) Extensible Markup Language

XML (4) Extensible Markup Language XML (4) Extensible Markup Language Acknowledgements and copyrights: these slides are a result of combination of notes and slides with contributions from: Michael Kiffer, Arthur Bernstein, Philip Lewis,

More information

XML - Schema. Mario Arrigoni Neri

XML - Schema. Mario Arrigoni Neri XML - Schema Mario Arrigoni Neri 1 Well formed XML and valid XML Well formation is a purely syntactic property Proper tag nesting, unique root, etc.. Validation is more semantic, because it must take into

More information

- XML. - DTDs - XML Schema - XSLT. Web Services. - Well-formedness is a REQUIRED check on XML documents

- XML. - DTDs - XML Schema - XSLT. Web Services. - Well-formedness is a REQUIRED check on XML documents Purpose of this day Introduction to XML for parliamentary documents (and all other kinds of documents, actually) Prof. Fabio Vitali University of Bologna Introduce the principal aspects of electronic management

More information

7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML

7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML 7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML is a markup language,

More information

XSLT. Lecture 38. Robb T. Koether. Mon, Apr 21, Hampden-Sydney College. Robb T. Koether (Hampden-Sydney College) XSLT Mon, Apr 21, / 26

XSLT. Lecture 38. Robb T. Koether. Mon, Apr 21, Hampden-Sydney College. Robb T. Koether (Hampden-Sydney College) XSLT Mon, Apr 21, / 26 XSLT Lecture 38 Robb T. Koether Hampden-Sydney College Mon, Apr 21, 2014 Robb T. Koether (Hampden-Sydney College) XSLT Mon, Apr 21, 2014 1 / 26 1 XSLT 2 Running XSLT 3 XSLT Files 4 Output Modes 5 XSLT

More information

Overview. Introduction to XML Schemas. Tutorial XML Europe , Berlin. 1 Introduction. 2 Concepts. 3 Schema Languages.

Overview. Introduction to XML Schemas. Tutorial XML Europe , Berlin. 1 Introduction. 2 Concepts. 3 Schema Languages. Introduction to XML Schemas Tutorial XML Europe 2001 21.5.2001, Berlin Ulrike Schäfer. www.infotakt.de. slide 1 Overview 1 Introduction q Why are Schemas? 2 Concepts q What are schemas? 3 Schema Languages

More information

CHAPTER 8. XML Schemas

CHAPTER 8. XML Schemas 429ch08 1/11/02 1:20 PM Page 291 CHAPTER 8 XML Schemas MOST OF US WHO ARE INVOLVED in XML development are all too familiar with using Document Type Definition (DTD) to enforce the structure of XML documents.

More information

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 7 XML

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 7 XML Chapter 7 XML 7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML

More information

XSL Elements. xsl:copy-of

XSL Elements. xsl:copy-of XSL Elements The following elements are discussed on this page: xsl:copy-of xsl:value-of xsl:variable xsl:param xsl:if xsl:when xsl:otherwise xsl:comment xsl:import xsl:output xsl:template xsl:call-template

More information

XML and Content Management

XML and Content Management XML and Content Management Lecture 3: Modelling XML Documents: XML Schema Maciej Ogrodniczuk, Patryk Czarnik MIMUW, Oct 18, 2010 Lecture 3: XML Schema XML and Content Management 1 DTD example (recall)

More information

Style Sheet A. Bellaachia Page: 22

Style Sheet A. Bellaachia Page: 22 Style Sheet How to render the content of an XML document on a page? Two mechanisms: CSS: Cascading Style Sheets XSL (the extensible Style sheet Language) CSS Definitions: CSS: Cascading Style Sheets Simple

More information

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name EXAM IN SEMI-STRUCTURED DATA 184.705 10. 01. 2017 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will

More information

THE EXTENSIBLE MARKUP LANGUAGE (XML) AS A MEDIUM FOR DATA EXCHANGE

THE EXTENSIBLE MARKUP LANGUAGE (XML) AS A MEDIUM FOR DATA EXCHANGE Association for Information Systems AIS Electronic Library (AISeL) AMCIS 2002 Proceedings Americas Conference on Information Systems (AMCIS) December 2002 THE EXTENSIBLE MARKUP LANGUAGE (XML) AS A MEDIUM

More information

Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. M.Sc. in Advanced Computer Science. Date: Tuesday 20 th May 2008.

Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. M.Sc. in Advanced Computer Science. Date: Tuesday 20 th May 2008. COMP60370 Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE M.Sc. in Advanced Computer Science Semi-Structured Data and the Web Date: Tuesday 20 th May 2008 Time: 09:45 11:45 Please answer

More information

XML and XSLT. XML and XSLT 10 February

XML and XSLT. XML and XSLT 10 February XML and XSLT XML (Extensible Markup Language) has the following features. Not used to generate layout but to describe data. Uses tags to describe different items just as HTML, No predefined tags, just

More information

XML. Part II DTD (cont.) and XML Schema

XML. Part II DTD (cont.) and XML Schema XML Part II DTD (cont.) and XML Schema Attribute Declarations Declare a list of allowable attributes for each element These lists are called ATTLIST declarations Consists of 3 basic parts The ATTLIST keyword

More information

Delivery Options: Attend face-to-face in the classroom or via remote-live attendance.

Delivery Options: Attend face-to-face in the classroom or via remote-live attendance. XML Programming Duration: 5 Days US Price: $2795 UK Price: 1,995 *Prices are subject to VAT CA Price: CDN$3,275 *Prices are subject to GST/HST Delivery Options: Attend face-to-face in the classroom or

More information

No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation.

No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation. [MS-RDWR]: Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes Open Specifications documentation for protocols, file formats, languages,

More information

Module 3. XML Schema

Module 3. XML Schema Module 3 XML Schema 1 Recapitulation (Module 2) XML as inheriting from the Web history SGML, HTML, XHTML, XML XML key concepts Documents, elements, attributes, text Order, nested structure, textual information

More information

DOM Interface subset 1/ 2

DOM Interface subset 1/ 2 DOM Interface subset 1/ 2 Document attributes documentelement methods createelement, createtextnode, Node attributes nodename, nodevalue, nodetype, parentnode, childnodes, firstchild, lastchild, previoussibling,

More information

ENTSO-E ACKNOWLEDGEMENT DOCUMENT (EAD) IMPLEMENTATION GUIDE

ENTSO-E ACKNOWLEDGEMENT DOCUMENT (EAD) IMPLEMENTATION GUIDE 1 ENTSO-E ACKNOWLEDGEMENT DOCUMENT (EAD) 2014-01-16 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 Table of Contents 1 OBJECTIVE... 5 2 THE ACKNOWLEDGEMENT

More information

XML Query Reformulation for XPath, XSLT and XQuery

XML Query Reformulation for XPath, XSLT and XQuery XML Query Reformulation for XPath, XSLT and XQuery (Sven.Groppe@deri.org, http://members.deri.at/~sveng/) Tutorial at DBA 2006/Innsbruck 2/17/2006 1:29:13 Copyright 2006 Digital Enterprise Research Institute.

More information

Delivery Options: Attend face-to-face in the classroom or remote-live attendance.

Delivery Options: Attend face-to-face in the classroom or remote-live attendance. XML Programming Duration: 5 Days Price: $2795 *California residents and government employees call for pricing. Discounts: We offer multiple discount options. Click here for more info. Delivery Options:

More information

CSI 3140 WWW Structures, Techniques and Standards. Representing Web Data: XML

CSI 3140 WWW Structures, Techniques and Standards. Representing Web Data: XML CSI 3140 WWW Structures, Techniques and Standards Representing Web Data: XML XML Example XML document: An XML document is one that follows certain syntax rules (most of which we followed for XHTML) Guy-Vincent

More information

Author: Irena Holubová Lecturer: Martin Svoboda

Author: Irena Holubová Lecturer: Martin Svoboda NPRG036 XML Technologies Lecture 6 XSLT 9. 4. 2018 Author: Irena Holubová Lecturer: Martin Svoboda http://www.ksi.mff.cuni.cz/~svoboda/courses/172-nprg036/ Lecture Outline XSLT Principles Templates Instructions

More information

Creation of the adaptive graphic Web interfaces for input and editing data for the heterogeneous information systems on the bases of XML technology

Creation of the adaptive graphic Web interfaces for input and editing data for the heterogeneous information systems on the bases of XML technology Creation of the adaptive graphic Web interfaces for input and editing data for the heterogeneous information systems on the bases of XML technology A. Mukhitova and O. Zhizhimov Novosibirsk State University,

More information

~ Ian Hunneybell: DIA Revision Notes ~

~ Ian Hunneybell: DIA Revision Notes ~ XML is based on open standards, and is text-based, thereby making it accessible to all. It is extensible, thus allowing anyone to customise it for their own needs, to publish for others to use, and to

More information

Introduction. " Documents have tags giving extra information about sections of the document

Introduction.  Documents have tags giving extra information about sections of the document Chapter 10: XML Introduction! XML: Extensible Markup Language! Defined by the WWW Consortium (W3C)! Originally intended as a document markup language not a database language " Documents have tags giving

More information

Introduction. " Documents have tags giving extra information about sections of the document

Introduction.  Documents have tags giving extra information about sections of the document Chapter 10: XML Introduction! XML: Extensible Markup Language! Defined by the WWW Consortium (W3C)! Originally intended as a document markup language not a database language " Documents have tags giving

More information

Sticky and Proximity XML Schema Files

Sticky and Proximity XML Schema Files APPENDIX B Sticky and Proximity XML Schema Files This appendix describes how you can use the two XML schema files, included with the GSS, to describe and validate the sticky XML and proximity XML output

More information

Manipulating XML Trees XPath and XSLT. CS 431 February 18, 2008 Carl Lagoze Cornell University

Manipulating XML Trees XPath and XSLT. CS 431 February 18, 2008 Carl Lagoze Cornell University Manipulating XML Trees XPath and XSLT CS 431 February 18, 2008 Carl Lagoze Cornell University XPath Language for addressing parts of an XML document XSLT Xpointer XQuery Tree model based on DOM W3C Recommendation

More information

Hypermedia and the Web XSLT and XPath

Hypermedia and the Web XSLT and XPath Hypermedia and the Web XSLT and XPath XSLT Extensible Stylesheet Language for Transformations Compare/contrast with CSS: CSS is used to change display characteristics of primarily HTML documents. But,

More information

XSLT: How Do We Use It?

XSLT: How Do We Use It? XSLT: How Do We Use It? Nancy Hallberg Nikki Massaro Kauffman 1 XSLT: Agenda Introduction & Terminology XSLT Walkthrough Client-Side XSLT/XHTML Server-Side XSLT/XHTML More Creative Server-Side XSLT 2 XSLT:

More information

XML. Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior

XML. Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior XML Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior XML INTRODUCTION 2 THE XML LANGUAGE XML: Extensible Markup Language Standard for the presentation and transmission of information.

More information

Structured documents

Structured documents Structured documents An overview of XML Structured documents Michael Houghton 15/11/2000 Unstructured documents Broadly speaking, text and multimedia document formats can be structured or unstructured.

More information

[MS-WORDLFF]: Word (.xml) Co-Authoring File Format in Document Lock Persistence Structure

[MS-WORDLFF]: Word (.xml) Co-Authoring File Format in Document Lock Persistence Structure [MS-WORDLFF]: Word (.xml) Co-Authoring File Format in Document Lock Persistence Structure Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes

More information

DBMaker. XML Tool User's Guide

DBMaker. XML Tool User's Guide DBMaker XML Tool User's Guide CASEMaker Inc./Corporate Headquarters 1680 Civic Center Drive Santa Clara, CA 95050, U.S.A. www.casemaker.com www.casemaker.com/support Copyright 1995-2003 by CASEMaker Inc.

More information

SuccessMaker Data Services API Guide

SuccessMaker Data Services API Guide SuccessMaker 7.0.1 Data Services API Guide Document last updated August 2014 Copyright 2011 2014 Pearson Education, Inc. or one or more of its direct or indirect affiliates. All rights reserved. Pearson

More information

[MS-RDWR]: Remote Desktop Workspace Runtime Protocol. Intellectual Property Rights Notice for Open Specifications Documentation

[MS-RDWR]: Remote Desktop Workspace Runtime Protocol. Intellectual Property Rights Notice for Open Specifications Documentation [MS-RDWR]: Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes Open Specifications documentation ( this documentation ) for protocols,

More information

XML Schema Profile Definition

XML Schema Profile Definition XML Schema Profile Definition Authors: Nicholas Routledge, Andrew Goodchild, Linda Bird, DSTC Email: andrewg@dstc.edu.au, bird@dstc.edu.au This document contains the following topics: Topic Page Introduction

More information

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Computer Science And Engineering

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Computer Science And Engineering INTERNAL ASSESSMENT TEST 2 : SOLUTION MANUAL Date : 03/10/17 Max Marks : 50 Subject & Code : Programming the Web / 10CS73 Section : A,B & C Name of Faculty : Ms. Ciji K R, Ms. Kanthimathi S Time : 8:30

More information

CA Data Protection. Account Import XML Schema Guide. Release 15.0

CA Data Protection. Account Import XML Schema Guide. Release 15.0 CA Data Protection Account Import XML Schema Guide Release 15.0 This Documentation, which includes embedded help systems and electronically distributed materials (hereinafter referred to as the Documentation

More information

OpenGIS Project Document r2

OpenGIS Project Document r2 TITLE: OpenGIS Project Document 01-044r2 Units of Measure and Quantity Datatypes AUTHOR: Name: John Bobbitt Address: POSC 9801 Westheimer Rd., Suite 450 Houston, TX 77079 Phone: 713-267-5174 Email: DATE:

More information

UC Web Service Developer Guide of UC Credit Report. version 1.1 V

UC Web Service Developer Guide of UC Credit Report. version 1.1 V UC Web Service Developer Guide of UC Credit Report version 1.1 V. 2015.12.14 Developer Guide of UCCreditReport Web Service Page 2 of 45 Terms description of UCCreditReport Web Service Copyright 2009 UC

More information

Display the XML Files for Disclosure to Public by Using User-defined XSL Zhiping Yan, BeiGene, Beijing, China Huadan Li, BeiGene, Beijing, China

Display the XML Files for Disclosure to Public by Using User-defined XSL Zhiping Yan, BeiGene, Beijing, China Huadan Li, BeiGene, Beijing, China PharmaSUG China 2018 Paper CD-72 Display the XML Files for Disclosure to Public by Using User-defined XSL Zhiping Yan, BeiGene, Beijing, China Huadan Li, BeiGene, Beijing, China ABSTRACT US Food and Drug

More information

XSDs: exemplos soltos

XSDs: exemplos soltos XSDs: exemplos soltos «expande o tipo base»

More information

OMA Web Services Enabler (OWSER) Best Practices: WSDL Style Guide

OMA Web Services Enabler (OWSER) Best Practices: WSDL Style Guide OMA Web Services Enabler (OWSER) Best Practices: WSDL Style Guide Approved Version 1.0 15 Jul 2004 Open Mobile Alliance OMA-OWSER-Best_Practice-WSDL_Style_Guide-V1_0-20040715-A OMA-OWSER-Best_Practice-WSDL_Style_Guide-V1_0-20040715-A

More information

Introduction to XSLT. Version 1.3 March nikos dimitrakas

Introduction to XSLT. Version 1.3 March nikos dimitrakas Introduction to XSLT Version 1.3 March 2018 nikos dimitrakas Table of contents 1 INTRODUCTION... 3 1.1 XSLT... 3 1.2 PREREQUISITES... 3 1.3 STRUCTURE... 3 2 SAMPLE DATA... 4 3 XSLT... 6 4 EXAMPLES... 7

More information

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

PASS4TEST. IT Certification Guaranteed, The Easy Way!   We offer free update service for one year PASS4TEST IT Certification Guaranteed, The Easy Way! \ http://www.pass4test.com We offer free update service for one year Exam : 000-141 Title : XML and related technologies Vendors : IBM Version : DEMO

More information

XML: Extensible Markup Language

XML: Extensible Markup Language XML: Extensible Markup Language CSC 375, Fall 2015 XML is a classic political compromise: it balances the needs of man and machine by being equally unreadable to both. Matthew Might Slides slightly modified

More information

Question Bank XML (Solved/Unsolved) Q.1 Fill in the Blanks: (1 Mark each)

Question Bank XML (Solved/Unsolved) Q.1 Fill in the Blanks: (1 Mark each) Q.1 Fill in the Blanks: (1 Mark each) 1. With XML, you can create your own elements, also called tags. 2. The beginning or first element in XML is called the root (document) element. 3. Jon Bosak is known

More information

Contents. 1 Introduction Basic XML concepts Historical perspectives Query languages Contents... 2

Contents. 1 Introduction Basic XML concepts Historical perspectives Query languages Contents... 2 XML Retrieval 1 2 Contents Contents......................................................................... 2 1 Introduction...................................................................... 5 2 Basic

More information

웹기술및응용. XML Schema 2018 년 2 학기. Instructor: Prof. Young-guk Ha Dept. of Computer Science & Engineering

웹기술및응용. XML Schema 2018 년 2 학기. Instructor: Prof. Young-guk Ha Dept. of Computer Science & Engineering 웹기술및응용 XML Schema 2018 년 2 학기 Instructor: Prof. Young-guk Ha Dept. of Computer Science & Engineering Outline History Comparison with DTD Syntax Definitions and declaration Simple types Namespace Complex

More information

Altova XMLSpy 2007 Tutorial

Altova XMLSpy 2007 Tutorial Tutorial All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical, including photocopying, recording, taping, or information storage

More information

Appendix H XML Quick Reference

Appendix H XML Quick Reference HTML Appendix H XML Quick Reference What Is XML? Extensible Markup Language (XML) is a subset of the Standard Generalized Markup Language (SGML). XML allows developers to create their own document elements

More information

Introduction to XSLT. Version 1.0 July nikos dimitrakas

Introduction to XSLT. Version 1.0 July nikos dimitrakas Introduction to XSLT Version 1.0 July 2011 nikos dimitrakas Table of contents 1 INTRODUCTION... 3 1.1 XSLT... 3 1.2 PREREQUISITES... 3 1.3 STRUCTURE... 3 2 SAMPLE DATA... 4 3 XSLT... 6 4 EXAMPLES... 7

More information

Java EE 7: Back-end Server Application Development 4-2

Java EE 7: Back-end Server Application Development 4-2 Java EE 7: Back-end Server Application Development 4-2 XML describes data objects called XML documents that: Are composed of markup language for structuring the document data Support custom tags for data

More information

Chapter 11 XML Data Modeling. Recent Development for Data Models 2016 Stefan Deßloch

Chapter 11 XML Data Modeling. Recent Development for Data Models 2016 Stefan Deßloch Chapter 11 XML Data Modeling Recent Development for Data Models 2016 Stefan Deßloch Motivation Traditional data models (e.g., relational data model) primarily support structure data separate DB schema

More information

UBL Naming and Design Rules Checklist

UBL Naming and Design Rules Checklist UBL Naming And Design Rules Checklist Page 1 2004-09-03 UBL Naming and Design Rules Checklist This document is a subset of the UBL Naming and Design Rules Master Document. It reflects the rules used to

More information

COP 4814 Florida International University Kip Irvine XSLT. Updated: 2/9/2016 Based on Goldberg, Chapter 2. Irvine COP 4814

COP 4814 Florida International University Kip Irvine XSLT. Updated: 2/9/2016 Based on Goldberg, Chapter 2. Irvine COP 4814 COP 4814 Florida International University Kip Irvine XSLT Updated: 2/9/2016 Based on Goldberg, Chapter 2 XSL Overview XSL Extensible Stylesheet Language A family of languages used to transform and render

More information

xmlns:gu="http://www.gu.au/empdtd" xmlns:uky="http://www.uky.edu/empdtd">

xmlns:gu=http://www.gu.au/empdtd xmlns:uky=http://www.uky.edu/empdtd> Namespaces Namespaces An XML document may use more than one DTD or schema Since each structuring document was developed independently, name clashes may appear The solution is to use a different prefix

More information

Altova XMLSpy 2013 Tutorial

Altova XMLSpy 2013 Tutorial Tutorial All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical, including photocopying, recording, taping, or information storage

More information

X(ml)S(chema)D(definition) Complex Types Indicators

X(ml)S(chema)D(definition) Complex Types Indicators X(ml)S(chema)D(definition) Complex Types Indicators We can control HOW elements are to be used in documents with indicators. Indicators We have seven types of indicators: Order indicators: All Choice Sequence

More information

Chapter 7: XML Namespaces

Chapter 7: XML Namespaces 7. XML Namespaces 7-1 Chapter 7: XML Namespaces References: Tim Bray, Dave Hollander, Andrew Layman: Namespaces in XML. W3C Recommendation, World Wide Web Consortium, Jan 14, 1999. [http://www.w3.org/tr/1999/rec-xml-names-19990114],

More information

XML Origin and Usages

XML Origin and Usages Kapitel 1 XML Outline XML Basics DTDs, XML Schema XPath, XSLT, XQuery SQL/XML Application Programming Integration N. Ritter, WfWS, Kapitel1, SS 2005 1 XML Origin and Usages Defined by the WWW Consortium

More information

Displaying Discussion Threads on WebCenter Pages

Displaying Discussion Threads on WebCenter Pages TechNote Oracle WebCenter Displaying Discussion Threads on WebCenter Pages January 2008 A discussion service is a very efficient collaboration tool that allows users to exchange ideas organized by topics

More information

Burrows & Langford Chapter 9 page 1 Learning Programming Using Visual Basic.NET

Burrows & Langford Chapter 9 page 1 Learning Programming Using Visual Basic.NET Burrows & Langford Chapter 9 page 1 CHAPTER 9 ACCESSING DATA USING XML The extensible Markup Language (XML) is a language used to represent data in a form that does not rely on any particular proprietary

More information

An alternative approach to store electronic data: the role of XML

An alternative approach to store electronic data: the role of XML An alternative approach to store electronic data: the role of XML Leuven 2003 FOR $l IN document( wwwestvipvpt/biblioteca/bdbiblioxml ) //livro WHERE $l/editora/nome = FCA AND $l/ano > 1995 RETURN $l/autor

More information