Subject: [xsl] Group by letter From: "Rick Quatro" <frameexpert@xxxxxxxxxxxx> Date: Sun, 27 Jan 2008 16:58:47 -0500 |
<?xml version="1.0" encoding="utf-16"?> <definitions> <dlentry> <dt>Author Description</dt> <dd>Description of the performance review defined...</dd> </dlentry> <dlentry> <dt>Author Job Title</dt> <dd>Setting that indicates if the job title...</dd> </dlentry> <dlentry> <dt>Show Author ID</dt> <dd>Setting that indicates if the ID...</dd> </dlentry> </definitions>
<?xml version="1.0" encoding="utf-16"?> <definitions> <dl title="A"> <dlentry> <dt>Author Description</dt> <dd>Description of the performance review defined...</dd> </dlentry> <dlentry> <dt>Author Job Title</dt> <dd>Setting that indicates if the job title...</dd> </dlentry> </dl> <dl title="S"> <dlentry> <dt>Show Author ID</dt> <dd>Setting that indicates if the ID...</dd> </dlentry> </dl> </definitions>
<xsl:template match="reference"> <definitions> <xsl:apply-templates select="refbody" /> </definitions> </xsl:template>
<xsl:template match="refbody"> <xsl:apply-templates select="section"> <xsl:sort select="title" /> </xsl:apply-templates> </xsl:template>
<xsl:template match="section"> <dlentry> <xsl:apply-templates select="p" /> </dlentry> </xsl:template>
<xsl:template match="p[position()=1]"> <dt> <xsl:copy-of select="text()|*" /> </dt> </xsl:template>
<xsl:template match="p[position()=2]"> <dd> <xsl:copy-of select="text()|*" /> </dd> </xsl:template>
Rick Quatro Carmen Publishing 585-659-8267 www.frameexpert.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[no subject], Unknown | Thread | RE: [xsl] Group by letter, Michael Kay |
RE: [xsl] Request help in understan, Michael Kay | Date | Re: [xsl] combining multiple docume, Robert Koberg |
Month |