xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] blockQuotes to blockQuote p p


Subject: RE: [xsl] blockQuotes to blockQuote p p
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Mon, 5 May 2003 13:22:43 -0500

Michael Kay wrote:

> The following rules should handle this:
> 
> <xsl:template match="blockQuotes" priority="20">
> <blockQuotes>
>   <p><xsl:apply-templates/></p>
>   <xsl:apply-template 
> match="following-sibling::*[1][self::blockQuotes]"
>         mode="continue"/>
> </blockQuotes>
> </xsl:template>
> 
> <xsl:template
> match="blockQuotes[preceding-sibling::*[1][self::blockQuotes]]" 
>      priority="30"/>
> 
> <xsl:template
> match="blockQuotes[preceding-sibling::*[1][self::blockQuotes]]"
> priority="30">

We're missing a
   mode="continue"
in the above line, right?  Otherwise, I'm confused...

>   <p><xsl:apply-templates/></p>
>   <xsl:apply-template 
> match="following-sibling::*[1][self::blockQuotes]"
>         mode="continue"/>
> </xsl:template>
> 
> In XSLT 2.0 you can use xsl:for-each-group - there is a very similar
> example in the spec.
> 
> Michael Kay
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2010 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor