Re: [xsl] grouping xhtml title with first sibling

Subject: Re: [xsl] grouping xhtml title with first sibling
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 18 Jan 2011 12:48:07 -0500
Matthieu,

On 1/18/2011 10:34 AM, you wrote:
Thank you Michael, this looks more appropiate to my need ;-)

After adding the f prefix to :
<xsl:template match="body/*/f:is-heading(.)" priority="10">

I get an "Failed to compile stylesheet" error :
Error at xsl:template on line 23 column 63 of orphans.xsl:
XTSE0340: XSLT Pattern syntax error at char 7 on line 23 in
{body/*/igs:is-heading(.}:
Function call may appear only at the start of a pattern
Failed to compile stylesheet. 1 error detected.

Just a stab in the dark in case MK has gone off line ...


... I think this is just a typo. Try "body/*[f:is-heading(.)]". That is, match any body/* for which f:is-heading(.) returns true().

Good luck,
Wendell

======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================

Current Thread