[Mono-list] More help needed with XSLT

John Duncan jddst19@mac.com
Wed, 19 Feb 2003 23:51:19 -0500


I can give you this:

	<xsl:template match="list[@type='bullet']">
		<ul>
		<xsl:apply-templates mode="list"/>
		</ul>
	</xsl:template>
	
	<xsl:template match="item" mode="list">
		<li><xsl:apply-templates/></li>
	</xsl:template>

but I find the table one hard to do in a generic fashion. I think it 
requires building a list of the element types from the listheader. This, 
I believe, is hard to do in XSLT. If the types will always be 
term/definition then the implementation is straightforward.

John

On Wednesday, February 19, 2003, at 11:29 PM, Miguel de Icaza wrote:

> Hey guys!
>
>
>    I need some more help with my XSLT.   I asked Peter first this time,
> as he always reply quickly, but he is busy this week ;-)
>
>     We need a few more tags supported, the details are here:
>
>         www.go-mono.com/documentation.html
>
>    The tags am looking to support are:
>
>         <code lang="C#">.. </code>
>
>         Those happen inside the "<example>" bits.
>
>    <list type="bullet">  </list>
>
>    That is basically a <ul> list in HTML
>
>    And the table ones:
>
>         <list type="table"> </lits>
>             <listheader>
>               <term>YOUR FIRST COLUMN</term>
>               <description>YOUR DESCRIPTION</description>
>             </listheader>
>
>         <item>
>                 <term>First</term>
>                 <description>First descritpion</description>
>         </item>
>         <item>
>                 <term>Second</term>
>                 <description>Second descirption</description>
>         </item>
>
> Here is again my XSLT file
>