This is generating inline elements that are commingled with with block
elements. The browser engine knows this cannot happen and will correct this by
wrapping these in a block element of its choosing (<p>). I would have expect
this list to be a list <ul> or <ol>. At the very least, these <a> and
<br /> elements should be in a div.
=== modified file 'src/launchpadl ib/wadl- to-refhtml. xsl' b/wadl- to-refhtml. xsl 2009-08-14 16:48:11 +0000 b/wadl- to-refhtml. xsl 2009-09-08 21:43:30 +0000 templates select="wadl:doc"/> of-contents" /> level-collectio ns" /> of-contents" >
--- src/launchpadli
+++ src/launchpadli
...
> @@ -413,12 +416,53 @@
> <h1><xsl:value-of select="$title" /></h1>
> <xsl:apply-
>
> + <xsl:call-template name="table-
> <xsl:call-template name="top-
> <xsl:call-template name="entry-types" />
> </body>
> </html>
> </xsl:template>
>
> + <!-- Table of contents -->
> + <xsl:template name="table-
> + <div id="toc">
> + <h2>Table of Contents</h2>
> + <h3>Top-level collections</h3>
> + <xsl:for-each root-json' )/wadl: param/wadl: link"> n_id" "substring- after(@ resource_ type, '#')" /> length( $collection_ id) > 0">
> + select="key('id', 'service-
> + <xsl:sort select="../@name" />
> + <xsl:variable name="collectio
> + select=
> + <xsl:if test="string-
This is not well-formed. The '>' should be '>'. I surprissed this works.
> + <a href="# {$collection_ id}"> title-or- id"> template>
> + <xsl:call-template name="get-
> + <xsl:with-param name="element" select="key('id', $collection_id)" />
> + </xsl:call-
> + </a><br/>
> + </xsl:if>
> + </xsl:for-each>
This is generating inline elements that are commingled with with block
elements. The browser engine knows this cannot happen and will correct this by
wrapping these in a block element of its choosing (<p>). I would have expect
this list to be a list <ul> or <ol>. At the very least, these <a> and
<br /> elements should be in a div.
> + <h3>Entry types</h3>
> + <xsl:for-each select= "wadl:resource_ type[ level_collectio ns" root-json' )//@resource_ type[ $top_level_ collections[ contains( ., $id)])"> title-or- id"> template>
> + @id != 'service-root'
> + and @id != 'HostedFile'
> + and not(contains(@id, 'page-resource'))
> + ]">
> + <xsl:sort select="@id" />
> + <xsl:variable name="id" select="./@id"/>
> + <xsl:variable name="top_
> + select="key('id', 'service-
> + substring-after(., '#') = $id]" />
> + <xsl:if test="not(
> + <a href="#{$id}">
> + <xsl:call-template name="get-
> + <xsl:with-param name="element" select="." />
> + </xsl:call-
> + </a><br/>
> + </xsl:if>
> + </xsl:for-each>
Again I would expect an <ol> or <ul> wrapping these links in the block flow.
> + </div>
> + </xsl:template>
...