Subject: Re: [xsl] testing element's contents From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 03 Oct 2002 17:35:39 -0400 |
Thanks Wendell. Thinking it over, your simple template of
> <xsl:template match="p[not(normalize-space(.))]"> > <xsl:apply-templates/> > </xsl:template>
will not work, as much as I wish it would, as I am allowing other elements such as <strong> and <em> and I could get passed a node set like this
<p><strong>this is bold text</strong></p>
OR this
<p><em>this is bold text</em></p>
For both of those cases, they would need to get wrapped in a p tag in the output.
Cheers, 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] testing element's content, Joerg Heinicke | Thread | Re: [xsl] testing element's content, Nathan Shaw |
Re: [xsl] representing ampersand an, Joerg Heinicke | Date | [xsl] How to get value from JavaScr, Kong, Yan |
Month |