Subject: Empty tags
From: Minita Jha <jha@xxxxxxxxxxx>
Date: Thu, 19 Aug 1999 11:04:03 -0400 (EDT)
|
Hi,
How does one handle empty tags? For eg, consider the following xml:
<address>
<street_1>xxxx Drive</street_1>
<street_2><street_2>
<city>Bethesda</city>
<state>MD</state>
</address>
Xsl:
<xsl:template match="address">
<P>Street 1:
<xsl:value-of select="street_1"/></P>
<P>Street 2 :
<xsl:value-of select="street_2"/></P>
<P>City :
<xsl:value-of select="city"/></P>
<P>State :
<xsl:value-of select="state"/></P>
</xsl:template>
In this case the header for street_2 is printed out. This is what I want to
avoid.
Thanks
Minita.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Empty tags
- Minita Jha - Thu, 19 Aug 1999 11:04:03 -0400 (EDT) <=
- <Possible follow-ups>
- Ben Robb - Thu, 19 Aug 1999 16:31:05 +0100
|
|