Title:

Einführung in XML

Home
deutsch
  
ISBN: 3540293248   ISBN: 3540293248   ISBN: 3540293248   ISBN: 3540293248 
 
  Wir empfehlen:       
 

XML-Techniken, Websites und Tutorials

(weit ohne Anspruch auf Vollständigkeit)
  • XML allgemein

  • Websites Tutorials
  • XSL

  • Die Extensible Stylesheet Language (XSL) ist eine Sprache für die Formulierung von Stylesheets und besteht aus zwei Bestandteilen:
    • Einer Sprache für die Umformung (transforming) von XML Dokumenten XSLT, (Recommendation)
    • Einem Vokabular für die Formatierung in XML (XSL-FO). XML-Dokumente, die dieses Vokabular benutzen, können durch einen XSL-FO verstehenden Formatierer aufbereitet werden.
    Tutorials
    • http://www.nwalsh.com/docs/tutorials/xsl/xsl/frames.html

    • Folgendes Beispiel aus diesem Tutorial verdeutlicht die vorgesehene Arbeitsweise:
       
      XSLT Anweisungen (Templates)  für die Formatierung eines Textes wie
      <?xml version="1.0" encoding="utf-8"?>
      <buch>
        <chapter>
          <title>Preface</title>
          <para>This is a simple test document.  
      It shows a <emphasis>partial</emphasis>
      fo-result tree (page layout missing). 
          </para>
        </chapter>
      </buch>
      Das resultierenden Dokument wird durch einen "Formatierer" in eine Darstellung (Druck, Browser) übersetzt.
      <xsl:template match="chapter">
        <fo:flow>
          <xsl:apply-templates/>
        </fo:flow>
      </xsl:template>
      
      <xsl:template match="chapter/title">
        <fo:block font-size="18pt" font-weight="bold"
                  text-align="centered">
          <xsl:apply-templates/>
        </fo:block>
      </xsl:template>
      
      <xsl:template match="para">
        <fo:block font-size="12pt" space-before="1pc"
                  text-align="justified">
          <xsl:apply-templates/>
        </fo:block>
      </xsl:template>
      
      <xsl:template match="emphasis">
        <fo:inline font-style="italic">
          <xsl:apply-templates/>
        </fo:inline>
      </xsl:template>
      <?xml version="1.0" encoding="utf-8"?>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      ...
      <fo:page-sequence>
        <fo:flow>
          <fo:block font-size="18pt" font-weight="bold"
                    text-align="centered">
            Preface
          </fo:block>
          <fo:block font-size="12pt" space-before="1pc"
                    text-align="justified">
            This is a simple test document.  It shows a 
            <fo:inline font-style="italic">partial</fo:inline>
            fo-result tree (page layout missing).
          </fo:block>
        </fo:flow>
      </fo:page-sequence>
      ...
      </fo:root>
       
  • CSS

  • CSS ist eine einfache deklarative Sprache, die es Autoren und Anwendern erlaubt, stilistische Information (Schriftart, Farbe etc.) auf strukturierte XML- oder HTML Dokumente anzuwenden. Beispiel:

      H1 {
        font-size: 12pt;
        font-weight: bold;
        color: blue;
      }

    Beispiel:
     
    XML Stylesheet buch.css
    <?xml version="1.0" encoding="utf-8"?>
    <?xml:stylesheet type="text/css" href="buch.css"?>
    <buch>
      <chapter>
        <title>Preface</title>
        <para>This is a simple test document.  
    It shows a <emphasis>partial</emphasis>
    fo-result tree (page layout missing). 
        </para>
      </chapter>
    </buch>
    title, para { display: block }
    emphasis { display: inline }
    title { color:blue; font-size: 30pt }
    para { color:red; font-size: 15pt }
    emphasis { font-weight:bold; color:green }
    Ergebnis

     

  • Abgrenzung XSL zu CSS / DSSSL:

  • Will XSL replace CSS?
    No. They are likely to co-exist since they meet different needs. XSL is intended for complex formatting where the content of the document might be displayed in multiple places; for example the text of a heading might also appear in a dynamically generated table of contents. CSS is intended for dynamic formatting of online documents for multiple media; its strictly declarative nature limits its capabilities but also makes it efficient and easy to generate and modify in the content-generation workflow. So they are two different tools; for some tasks, CSS is the appropriate choice and for some tasks, XSL. They can also be used together - use XSL on the server to condense or customize some XML data into a simpler XML document, then use CSS to style it on the client.
    How is XSL different from DSSSL? From DSSSL-O?
    DSSSL is an International Standard style sheet language. It is particularly used for formatting of print documents. DSSSL-O is a profile of DSSSL which removes some functionality and adds capabilities to make it more suited for online documentation. XSL draws on DSSSL and the DSSSL-O work and continues the trend towards a Web-oriented style sheet language by integrating experience with CSS.
    Will XSL replace DSSSL?
    DSSSL has capabilities that XSL does not, and continues in use in the print publishing industry. Experience with XSL might be used in a future revision of DSSSL, but it is too early to say.
     
  • XML Schema

  • XML Schemas bieten die Möglichkeit, gemeinsame Vokabularien zu definieren und ermöglichen die automatische Verarbeitung von Regeln. Mit den Mitteln von XML-Schema können Strukturen, Inhalte und Bedeutungen von XML-Dokumenten definiert werden. Diese Definitionen werden in XML-Syntax geschrieben.
    Dokumente (in Entwicklung): Schema-Validator
    Beispiel (aus "XML Query Data Model")
     
    XML
    <?xml version=1.0?>
    <p:part xmlns:p="http://www.mywebsite.com/PartSchema"
          xsi:schemaLocation = "http://www.mywebsite.com/PartSchema
                                http://www.mywebsite.com/PartSchema"
          name="nutbolt">
      <mfg>Acme</mfg>
      <price>10.50</price>
    </p:part>
    Zugehöriges Schema
    <xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema"
      targetNamespace="http://www.mywebsite.com/PartSchema">
      <xsd:element name="part" type="part_type">
        <xsd:complexType name="part_type">
          <xsd:element name = "mfg" type="xsd:string"/>
          <xsd:element name = "price" type="xsd:decimal"/>
          <xsd:attribute name = "name" type="xsd:string"/>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
  • XML-Names

  • XML Namespaces sind eine einfache Methode um Element- und Attributnamen mit einem Prefix zu versehen, der über eine URI auf Elemente und Attribute aus anderen D    okumenten verweist. Auf diese Weise können Vokabularien wiederverwendet werden. Diese Methode wird häufig von anderen Techniken wie XML-Link, XSLT usw. benutzt, um die entsprechenden Tags für die Verarbeitung durch entsprechende Programme zu kennzeichnen:
    • <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  version="1.0">
    • <abschnitt xmlns:xlink="http://www.w3.org/XML/XLink/0.9">
    • Alle Elemente/Attribute innerhalb des Elements, das mit dem Namespace verbunden ist, und mit "xsl:" bzw. "xlink:" beginnt, importiert die entsprechende Bedeutung (Beispiel). Wird der Prefix in der Deklaration weggelassen, so tragen alle Elemente/Attribute die Bedeutung.

    •  
  • XML Pointer, XML Base and XML Linking
    • XML Linking Language (XLink)

    • This specification defines the XML Linking Language (XLink), which allows elements to be inserted into XML documents in order to create and describe links between resources. It uses XML syntax to create structures that can describe the simple unidirectional hyperlinks of today's HTML, as well as more sophisticated links.
    • XML Base

    • This specification proposes syntax for providing the equivalent of HTML BASE functionality generically in XML documents by defining an XML attribute named xml:base
    • XML Pointer Language (XPointer) Version 1.0

    • This specification defines the XML Pointer Language (XPointer), the language to be used as the basis for a fragment identifier for any URI reference that locates a resource of Internet media type text/xml or application/xml.
      XPointer, which is based on the XML Path Language (XPath), supports addressing into the internal structures of XML documents. It allows for examination of a hierarchical document structure and choice of its internal parts based on various properties, such as element types, attribute values, character content, and relative position.
  • XML-Signature

  • Darstellung von Signaturen für Web Ressourcen (bzw. alles was durch eine URI angesprochen werden kann) und Prozduren zum Berechnen und Überprüfen von Signatururen.
  • XML Query

  • Ermöglicht Abfragen auf XML Dokumente. Es gibt Szenarien wie die SQL-ähnliche XML-QL und XQL, welche eher den Vorläufer von XPath darstellt.
    The mission of the XML Query working group is to provide flexible query facilities to extract data from real and virtual documents on the Web.
    • XML Query Requirements

    • This document specifies goals, usage scenarios, and requirements for the W3C XML Query data model, algebra, and query language.
    • XML Query Data Model

    • This document defines the W3C XML Query Data Model, which is the foundation of the W3C XML Query Algebra; the XML Query Algebra will be specified in a future document. Together, these two documents [will] provide a precise semantics of the XML Query Language.
  • DOM

  • Das Document Object Model (DOM) der W3C ist eine standardisiertes Modell von XML (und HTML) Dokumenten und beschreibt Methoden, wie man auf die Bestandteile der Dokumente (Elemente, Attribute, Text, ...) zugreifen und wie man sie verändern kann. Damit besteht die Möglichkeit, Browser und Parser, die das Modell verwenden, untereinander auszutauschen.
    Bestandteile (Objekte) einschließlich ggf. "children" (aus dem Standard)
    • Document -- Element (maximum of one), ProcessingInstruction, Comment, DocumentType
    • DocumentFragment -- Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference
    • DocumentType -- no children
    • EntityReference -- Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference
    • Element -- Element, Text, Comment, ProcessingInstruction, CDATASection, EntityReference
    • Attr -- Text, EntityReference
    • ProcessingInstruction -- no children
    • Comment -- no children
    • Text -- no children
    • CDATASection -- no children
    • Entity -- Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference
    • Notation -- no children

    •  
    Beispiele für Eigenschaften und Methoden un (unvollständig):
    • parentNode, childNodes, firstChild, previousSibling, attributes
    • getElementsByTagName
    • getAttribute, setAttribute
    • hasChildNodes,
    • insertBefore, replaceChild, removeChild
    • createElement, createAttribute, ...


    Es gibt mehrere Level des DOM, Level 0 ist das in Netscape Navigator 3.0 und Microsoft Internet Explorer 3.0 implementierte.
    Level 1: der obige Standard
    Level 2: zur Zeit "Candidate Recommendation": "style sheet object model", Manipulation von "style information", "event model", "XML namespaces".
    Level 3: (Zukunft) Laden und Speichern von Dokumenten und Inhlatsmodellen (DTDs und Schemata). Anzeige und Formatierung, "key events", "event groups".
    "Further levels. These may specify some interface with the possibly underlying window system, including some ways to prompt the user. They may also contain a query language interface, and address multithreading and synchronization, security, and repository."
     

  • Resource Description Framework (RDF)

  • The Resource Description Framework (RDF) integrates a variety of web-based metadata activities including sitemaps, content ratings, stream channel definitions, search engine data collection (web crawling), digital library collections, and distributed authoring, using XML as an interchange syntax.
HTML und XML
  • HyperText Markup Language
  • XHTML™ 1.0: The Extensible HyperText Markup Language

  • Reformulierung von HTML 4 in XML als Basis für zukünftige Erweiterungen
    • Nutzung von XML-Werkzeugen
  • XForms - the next generation of Web forms

  • Forms were introduced into HTML in 1993. Since then they have gone on to become a critical part of the Web. The existing mechanisms in HTML for forms are now outdated, and the HTML Charter calls for work on an improved match to workflow and database applications, as well as support for an increasingly diverse range of browser capabilities.
    • Support for handheld, television, and desktop browsers, plus printers and scanners
    • Richer user interface to meet the needs of business, consumer and device control applications
    • Decoupled data, logic and presentation
    • Improved internationalization
    • Support for structured form data
    • Advanced forms logic
    • Multiple forms per page, and pages per form
    • Suspend and Resume support
    • Seamless integration with other XML tag sets

    •  
  
Semantic Web: Wege zur vernetzten Wissensgesellschaft (X.media.press)
Siehe auch:
Semantic Web: Grundlagen (eXamen.press)
Semantic Web: schnell + kompakt
Semantische Technologien: Grundlagen. Konzepte...
Social Semantic Web: Web 2.0 - Was nun? (X.m...
Informationsintegration: Architekturen und Methoden...
Ontologien: Konzepte, Technologien und...
 
   
 
     

Back to the topic site:
StudyPaper.com/Startseite/Computer/Internet

External Links to this site are permitted without prior consent.
   
  Home  |  deutsch  |  Set bookmark  |  Send a friend a link  |  Copyright ©  |  Impressum