|
Subject: Re: [xsl] Extracting text From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 25 May 2005 19:08:32 -0400 |
<xsl:template match="p"> <xsl:apply-templates/> </xsl:template>
<xsl:template match="span | br"/> <!-- this template suppresses the span and br -->
<xsl:template match="p">
<xsl:apply-templates select="text()"/>
<!-- this instruction selects only text node children
and processes them -->
</xsl:template>I hope this helps, Wendell
'lo all,
I need to extract 'Root level text' 'more root level text'
from:
<p> <span>whatever</span> Root level text <br/> more root level text </p>
Any ideas?
Thanks, jon jopaki@xxxxxxxxx
__________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/
====================================================================== 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 -> |
|---|---|---|
| [xsl] Extracting text, jpk | Thread | [xsl] XSLT Debugger / Gui, Zak Nixon |
| [xsl] Extracting text, jpk | Date | [xsl] XSLT Debugger / Gui, Zak Nixon |
| Month |