|
Subject: RE: [xsl] Testing for text before an element From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 17 Jul 2001 10:41:33 -0400 |
At 11:11 PM 7/16/01, you wrote: ...
> I'm using a <xsl:if > test="not(child::*[1][self::para])"><LineBreak/></xsl:if> > test. How do I > modify this expression to evaluate false if text preceeds a > <para> child?
And for the second test, assuming the text and <para> element are children of the current node
<xsl:if test="not(text()[following-sibling::para])"><LineBreak/></xsl:if>
Cheers, Wendell
Jarno
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
====================================================================== 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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Testing for text before a, Jarno . Elovirta | Thread | [xsl] Extra xmlns="", Larry Garfield |
| [xsl] simple question with <xsl:cop, Roman Huditsch | Date | Re: [xsl] Finding attribute of a 'g, Christian Cäsar |
| Month |