Subject: Re: [xsl] multi-paragraph blockquotes From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> Date: 06 May 2005 17:00:30 +0100 |
>>>>> "Bruce" == Bruce D'Arcus <bdarcus@xxxxxxxxx> writes: Bruce> On May 6, 2005, at 11:45 AM, Colin Paul Adams wrote: >> <div> <p>Some text:</p> <blockquote> <p>One paragraph.</p> >> >> etc. and adjust the templates accordingly. Bruce> Yes, that was what I was just about to say in reply to Jay. Bruce> But how do you do this in XSLT (2.0)? Just take Jay's templates: <xsl:template match="para"> <p><xsl:apply-templates/></p> </xsl:template> <xsl:template match="blockquote"> <xsl:apply-templates/> </xsl:template> <xsl:template match="blockquote/para"> <p style="text-indent:.25in"><xsl:apply-templates/></p> </xsl:template> and change them to: <xsl:template match="para"> <div><xsl:apply-templates/></div> </xsl:template> <xsl:template match="blockquote"> <blockquote><xsl:apply-templates/></blockquote> </xsl:template> <xsl:template match="blockquote/para"> <p><xsl:apply-templates/></p> </xsl:template> should do the trick, I think (untested) -- Colin Paul Adams Preston Lancashire
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] multi-paragraph blockquot, Bruce D'Arcus | Thread | Re: [xsl] multi-paragraph blockquot, Bruce D'Arcus |
Re: [xsl] XSL - Transforming 2 XSL , Wendell Piez | Date | Re: [xsl] multi-paragraph blockquot, Bruce D'Arcus |
Month |