![]() |
Appplication Specific Extensions![]() ![]() ![]() ![]() ![]()
XML permits entities and attributes that are defined in the external subset to be redefined in the internal subset. This facility allows XML/EDI users to develop locally significant subclasses. It can also be used to create subsets of messages by removing unused fields from the data model.
For example, the internal subset of a DTD based on the above standardized DTD could contain the following local redefinition for the %items; parameter entity: Creating Message Instances An XML/EDI electronic business message consists of a pointer to the document type definition, any definitions required in the internal subset of the DTD, and entries for each of the fields required for the message. Validating Messages XML/EDI messages can be validated by a validating XML document instance processor (known as an XML parsed to ensure they contain all required elements from the specified data set, and that the fields are in the required sequence. When the document is found to be valid the parser can generate a document tree that conforms to the rules laid down in the Document Object Model (DOM) specification that provides a standardized AN between XML parsers and browsers and other forms of program. XML elements can be assigned attributes that point to processors that can undertake relevant data validity checks. This can be done either by associating notation processors with an element, or by associating an ECMAScript specification with the element as part of an XSL "action" associated with the specific element types used in specific contexts, or with particular attribute values. Where the XML Style Language (XSL) is not being used (e.g. because the browser does not yet support it) the basic XML language allows user defined notation processors to be used to validate the contents of specific XML elements. Enchanging Messages Data captured in XML/EDI messages can be exchanged: in the form of an XML file (which can be encoded in any way required, but would normally be transmitted using the UTF 8 encoding of the UCS 2 data set by default) interchanged using the HTTP protocol, or one of its derivatives (e.g. Secure HTTP) in the form of a multipart Internet e mail message (MIME or Secure MIME encoded) in the form of a zipped (or otherwise encoded) file transferred using the Internet File Transfer Protocol (FTP) as a compressed (but not otherwise encrypted) set of extensions to an HTTP POST message that conforms to Internet's Common Gateway Interface (CGI) specification in the form of an EDI message (created by processing the XML file at source using a special conversion program). Where conversion into a known EDIFACT format is required the DTD can be extended to provide additional attributes that can guide the transformation process. For example, the following additional properties could be added to the list of attributes assigned to the EAN element: Messages exchanged as XML/EDI files can be re validated on receipt by running them through an XML/EDI validating parser. Where messages have been converted into non XML files prior to transmission the conversion should be reversed to allow re validation of the received message. During re valiclation any linked parts of messages should be retrieved to ensure that the full contents of the message have been checked. When re validation has been confirmed the Document Object Model created as part of the validation process can be used to create an auditable copy of the received message in a message store/ database. Processing Messages The way in which a received message would be processed would depend on which of the available methods for exchanging messages was chosen. If the message was received in a format that provided the XML/EDI message generated by the originator, the XML Style Language (XSL) can be used to associate different processes with individual element classes so that elements can be processed by one or more local processors. XML/EDI message instances are specifically designed to make the selection of data fields and classes at the receiver as easy as possible. Each field starts with a "starttag" that clearly identifies the class (element type in SGML/XML parlance) of the following data or embedded subelement set, and specifies any non default properties to be associated with the data. The end of each data element is clearly identified by an "end tag", which consists of the name of the element (class) preceded by a slash between a matched pair of outward pointing angle brackets. Fields that contain no data, and no embedded sub elements, (e.g. f ields that are only present to point to other data sources) have the slash indicating their end point immediately before the last angle bracket of the start tag rather than immediately after the first one of the end tag. (See the example for the element above.) Classes that contain sub classes of information have embedded elements between their start tag and end tag. XSL allows sets of actions to be associated with particular XML elements. Actions can be defined in terms of values to be assigned to a set of data presentation attributes (styles), or in terms of a data processing script that users can define using a definescript object . XSL scripts are defined using the ECMAScript language used for exchanging Java programming modules. Which actions are associated with which elements can be defined using XML element sets known as XSL rules. A simplified set of style rules allow presentation properties to be applied to element classes. Rules can be associated with elements that have been assigned a unique identifier (id) attribute or that have been assigned a particular value for a class attribute.
Sets of rules and actions can be defined in macros. Macros can be associated with style processing attributes associated with specific instances of an element. The default set of style properties defined in XSL can be extended using define style objects
|
|
Domain NamesXML HTML to XML Why XML? XML Example Program XML Structure XML Declaration Physical Structure in XML XML Syntax Well Formed and Valid Document Document Type Definition Logical Structures
Notation and Notation Declarations Entity References Importing an External DTD Cascading Style Sheets (XML) Rendering XML with CSS An Example Using CSS CSS Style Rules
XSL XSL Transformation XSL Formatting XSL Style Rules Schemas Limitations of DTD Validity of an XML Document
An Example using XML Schema Namespaces Xlinks and Xpointers Terminology Xlinks Extended Link Xpointers DOM and SAX What is DOM? The Basic Structure of an XML DOM-based Module What is SAX? When to use DOMWhen to use SAX Accessing the Database Using XML Delivering XML with Data Retrieving Data from SQL Database Using Web Assistant Wizard Displaying Records from the XML_EX Database Server Dynamic Web Publishing with Dynabase Enhydra Java/XML Application Server XML Server Technologies Purpose and Goal of the XML/EDI Guidelines Definitions for XML/EDI The Electronic Enterprise Server Scope of XML/EDI The Five Technologies of XML/EDI Integrating XML with EDI Ignore and Include Keywords XML/EDI Components The Implementation Process Identifying Data Sets Developing DTDs Application Specific Extensions XML and JAVA XML Application Architecture Channel Definition Format Creation of Channels Creating Channels Using CDF Document Description of the Channel Scheduling Logos Precaching Web Crawling Keeping Track of UsersWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |