Subject: Re: Multiple attributes present and non-present
From: Mike Ferrando <mikeferrando@xxxxxxxxx>
Date: Wed, 6 Mar 2002 11:16:49 -0800 (PST)
|
Joerg and Michael,
Thanks. How incredible!
I am getting good results with my xsl:if test. Maybe I am doing
something unconventional or possibly loosing data? Here is my
template:
<xsl:template select="SCORE">
<xsl:if test="C1005/text() | C1006 | C1007 | C1009">
<xsl:element name="ODD">
<xsl:apply-templates select="C1005 | C1006 | C1007 | C1009"/>
</xsl:element>
</xsl:if>
</xsl:template>
I don't want to get:
<ODD/>
I know that C1005 is the only node that will have attribute values
without text.
Normalize won't really work for me since I have cross reference nodes
containing
"See also ".
Spaces---^^
Is there a better way to do this?
Mike F.
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|