<entry-title>hBill 0.1</entry-title> This document represents a draft microformat specification. Although drafts are somewhat mature in the development process, the stability of this document cannot be guaranteed, and implementers should be prepared to keep abreast of future developments and changes. Watch this wiki page, or follow discussions on the #microformats Freenode IRC channel to stay up-to-date.
hBill is a microformat that allows to provide metainformation on a bill, so that customers can do transactions more easily.
- Johann Dirry
hBill 0.1 is a microformats.org draft specification. Public discussion on hBill takes place on hbill-feedback, the #microformats #microformats chat channel on irc.freenode.net, and microformats-discuss mailing list.
The English version of this specification is the only normative version. For translations of this document see the #translations section.
Errata and Updates
hBill is a microformat for identifying semantic information in electronic bills. hBill content is easily added to bills that are available in xHTML or HTML format.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Semantic XHTML Design Principles
Note: the Semantic XHTML Design Principles were written primarily within the context of developing hCard and hCalendar, thus it may be easier to understand these principles in the context of the hCard design methodology (i.e. read that first). Tantek
XHTML is built on XML, and thus XHTML based formats can be used not only for convenient display presentation, but also for general purpose data exchange. In many ways, XHTML based formats exemplify the best of both HTML and XML worlds. However, when building XHTML based formats, it helps to have a guiding set of principles.
- Reuse the schema (names, objects, properties, values, types, hierarchies, constraints) as much as possible from pre-existing, established, well-supported standards by reference. Avoid restating constraints expressed in the source standard. Informative mentions are ok.
- For types with multiple components, use nested elements with class names equivalent to the names of the components.
- Plural components are made singular, and thus multiple nested elements are used to represent multiple text values that are comma-delimited.
- Use the most accurately precise semantic XHTML building block for each object etc.
- Otherwise use a generic structural element (e.g.
<div>), or the appropriate contextual element (e.g. an
- Use class names based on names from the original schema, unless the semantic XHTML building block precisely represents that part of the original schema. If names in the source schema are case-insensitive, then use an all lowercase equivalent. Components names implicit in prose (rather than explicit in the defined schema) should also use lowercase equivalents for ease of use. Spaces in component names become dash '-' characters.
- Finally, if the format of the data according to the original schema is too long and/or not human-friendly, use
<abbr>instead of a generic structural element, and place the literal data into the 'title' attribute (where abbr expansions go), and the more brief and human readable equivalent into the element itself. Further informative explanation of this use of
<abbr>: Human vs. ISO8601 dates problem solved
Schema elements follow the microformat pattern of prefixing a unique identifier (in this case, '
h') on the outermost container elements—the Feed or Entry. The parts of this microformat are based on analysis of bills from online shops.
The hBill schema consists of the following:
hiban. required. IBAN code as specified in ISO 13616-1:2007 Part 1.
hbic. required. BIC/SWIFT code as specified in ISO 9362.
hban. optional. Country specific banking account number.
hbankcode. optional. Country specific bank code.
hbillingsum. required. xs:double. Ammout of money the customer has to submit to the selling party.
hcurrency. required. ISO 4217.
hreceiver. required. hCard 1.0 information of the money receiver.
hbank. recommended. hCard 1.0 information of the money receiving bank.
hbillnumber. recommended. xs:string. May be required by the selling party to identify the bill.
hbillingdate. required. xs:date or xs:dateTime. Date when the bill was created.
Field and Element Details
Public Domain Contribution Requirement. Since the author(s) released this work into the public domain, in order to maintain this work's public domain status, all contributors to this page agree to release their contributions to this page to the public domain as well. Contributors may indicate their agreement by adding the public domain release template to their user page per the Voluntary Public Domain Declarations instructions. Unreleased contributions may be reverted/removed..