]> Sample XHTML2 + MathML + SVG + EGIX + ContactXML + HLink + RDF + XML Character Entities document A Namespace Routing Language (NRL) schema for this document A Modular Namespaces (MNS) schema for this document

W3C

  • Hyperlink
  • Section structure
  • Navigation list
  • Quotation
  • Bi-directional Text Collection
  • Edit Collection
  • Ruby
  • MathML sample
  • SVG sample
  • EGIX sample
  • ContactXML sample
  • HLink sample
  • RDF sample
  • XML Character Entities sample
  • References
  • Sample XHTML 2.0 plus MathML 2.0 plus SVG 1.1 plus EGIX plus ContactXML plus HLink plus RDF plus XML Character Entities document
    Abstract

    This is a sample document mixing XHTML2, MathML, SVG, EGIX, ContactXML, HLink, RDF/XML and XML Character Entities together. This document passes validation against a Namespace Routing Language (NRL) schema and a Modular Namespaces (MNS) schema for XHTML2+MathML+SVG+EGIX+ContactXML+HLink+RDF+XMLCharEnt. An NRL schema can be found at: http://www.w3.org/People/mimasa/test/schemas/nrl/hybrid.nrl An MNS schema can be found at: http://www.w3.org/People/mimasa/test/schemas/rng/hybrid.mns This document is subject to drastic change. This is purely the author's personal experiment, and has no official status whatsoever.

    Table of contents
    • XHTML2 sample
      • Hyperlink
      • Section structure
      • Navigation list
      • Quotation
      • Bi-directional Text Collection
      • Edit Collection
      • Ruby
    • MathML sample
    • SVG sample
    • EGIX sample
    • ContactXML sample
    • HLink sample
    • RDF sample
    • XML Character Entities sample
    • References
    XHTML 2.0 sample
    Section structure section/h example
    Sample rendering Source
    section

    ... ...

    subsection

    ... ...

    subsubsection

    ... ...

    
        section
        

    ... ...

    subsection

    ... ...

    subsubsection

    ... ...

    ]]>
    Navigation list navigation list example
    Sample rendering Source
  • Activities
  • Technical Reports
  • Site Index
  • New Visitors
  • About W3C
  • Join W3C
  • 
      
      
  • Activities
  • Technical Reports
  • Site Index
  • New Visitors
  • About W3C
  • Join W3C
  • ]]>
    Quotation quotation example
    Sample rendering Source

    Unlike the q element, [v]isual user agents must not by default add delimiting quotation marks for the quote element. However, authors may provide necessary quotation marks via author style sheets.

    Unlike the q element, [v]isual user agents must not by default add delimiting
    quotation marks for the quote element.
    However, authors may provide necessary quotation marks via author
    style sheets.

    ]]>
    Bi-directional Text Collection
    Block-level
    dir="ltr":
    アーダーム, אדם; Adam
    dir="rtl":
    アーダーム, אדם; Adam
    dir="lro":
    アーダーム, אדם; Adam
    dir="rlo":
    アーダーム, אדם; Adam
    Inline-level
    dir="ltr":
    アーダーム, אדם; Adam
    dir="rtl":
    アーダーム, אדם; Adam
    dir="lro":
    アーダーム, אדם; Adam
    dir="rlo":
    アーダーム, אדם; Adam
    Edit Collection

    edit="inserted"

    edit="deleted"

    edit="changed"

    edit="moved"

    Ruby various ruby examples
    Simple ruby, with rp fall-back Simple ruby, without rp fall-back Complex ruby Complex ruby, with multiple ruby texts
    斎藤信男 (さいとうのぶお) 斎藤信男 さいとうのぶお さいとうのぶ

    Multilingual ruby example: Hebrew base (right-to-left) with Japanese katakana ruby (right-to-left, quite unusual but occasionally used) and English ruby (left-to-right)

    אדם アーダーム Adam

    MathML sample

    Math expression y = 1 x 2 + 1 inside an XHTML2 paragraph.

    Math expression in display style:

    det | c 0 c 1 c 2 c n c 1 c 2 c 3 c n + 1 c 2 c 3 c 4 c n + 2 c n c n + 1 c n + 2 c 2 n | > 0
    SVG sample

    A butterfly

    EGIX sample

    In this integration example, EGIX's name attribute has been added to XHTML2's Common Attribute Collection.

    EGIX example
    Sample rendering Source

    田茂

    田茂

    ]]>
    ContactXML sample

    In this integration example, ContactXML markup is allowed inside XHTML2's address element (but nowhere else).

    ContactXML example
    Sample rendering Source
    石川雅康 雅康 石川
    JP 252-8520 日本 神奈川県 藤沢市 遠藤 5322
    慶應義塾大学 政策・メディア研究科 専任講師 +81-466-XX-XXXX mimasa@w3.org http://www.w3.org/
    
    
      
        
          
            石川雅康
            雅康
            石川
          
        
        
    JP 252-8520 日本 神奈川県 藤沢市 遠藤 5322
    慶應義塾大学 政策・メディア研究科 専任講師 +81-466-XX-XXXX mimasa@w3.org http://www.w3.org/
    ]]>
    RDF sample

    There are several ways to use RDF in XHTML 2.0. The easiest way is to link RDF through the link element, like:

    
    ]]>
    or RDF/XML could be embedded directly inside head (under discussion):
    
        Sample XHTML2 + MathML + SVG + EGIX + ContactXML + HLink + RDF
          + XML Character Entities document
           ....
        
          
        
          ....
      
    ]]>
    Using the meta element to encode RDF in a DTD-friendly way is also being discussed.

    XML Character Entities sample

    In this integration example, XML Character elements are allowed at XHTML2's inline level.

    XML Character Entities example
    Sample rendering Source

    This document uses the character names element to access character entities, such as "" and "".

    This document uses the character names element to access
    character entities, such as ""
    and "".

    ]]>
    References
    XHTML 2.0
    W3C Working Draft, J. Axelsson et al., eds., 22 July 2004, work in progress
    Mathematical Markup Language (MathML) Version 2.0 (Second Edition)
    W3C Recommendation, D. Carlisle et al., eds., 21 October 2003
    Scalable Vector Graphics (SVG) 1.1 Specification
    W3C Recommendation, J. Ferraiolo, 藤沢 淳, D. Jackson, eds., 14 January 2003
    Embedding Glyph Identifiers in XML Documents
    W3C Note, 川俣 晶, ed., 20 December 2002
    ContactXML Version 1.1
    XML コンソーシアム勧告, XML コンソーシアム ContactXML 部会, 20 September 2002
    W3C Working Draft, S. Pemberton, 石川 雅康, eds., 13 September 2002, work in progress
    RDF/XML Syntax Specification (Revised)
    W3C Recommendation, Dave Beckett, ed., 10 February 2004
    XML Character Entities
    OASIS Working Draft, Norman Walsh, ed., 13 June 2002, work in progress
    Namespace Routing Language (NRL)
    James Clark, 13 June 2003
    Modular Namespaces (MNS)
    James Clark, 31 January 2003
    Masayasu Ishikawa