W3C home > Mailing lists > Public > public-appformats@w3.org > November 2006

[XBL] Error: Non-Well-Formed XML Example

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 02 Nov 2006 00:50:41 +1100
Message-ID: <4548A631.2020504@lachy.id.au>
To: public-appformats@w3.org

Hi,
   In section 2.5, the content element, the first example [1] is not 
well-formed.   You've accidentally mistyped end tags like 
<xbl:/template> instead of </xbl:template>, and others.  Here's the 
corrected markup.

<xbl:xbl xmlns:xbl="http://www.w3.org/ns/xbl"
          xmlns:data="http://example.com/data-language">
  <xbl:binding element="data|grid">
   <xbl:template>
    <xbl:div class="caption" xbl:inherits="xbl:text=title"/>
    <xbl:div class="outer-table">
     <xbl:div class="columns">
      <xbl:content includes="data|column">
       <!-- default to have just one column if none are declared -->
       <data:column/>
      </xbl:content>
     </xbl:div>
     <xbl:div class="rows">
      <xbl:content includes="data|heading"/>
      <xbl:div class="body">
       <xbl:content includes="data|row:not([hidden])"/>
      </xbl:div>
     </xbl:div>
    </xbl:div>
   </xbl:template>
   ...
  </xbl:binding>
  ...
</xbl:xbl>

[1] http://www.w3.org/TR/2006/WD-xbl-20060907/#content-element-example

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Wednesday, 1 November 2006 13:51:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:10:20 GMT