|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
RE: not getting expected matches
Subject: RE: not getting expected matches
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 16 Sep 2004 14:48:21 -0400
|
Luke,
At 01:47 PM 9/16/2004, you wrote:
okay, now, here is my whole stylesheet:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rm="http://red-man.com/namespace">
<xsl:template match="text()">
</xsl:template>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="*[starts-with(local-name(), 'SEG')]/rm:NAME">
<xsl:value-of select="."/><xsl:text>*</xsl:text>
</xsl:template>
<xsl:template match="*[starts-with(local-name(), 'ELE')]">
<xsl:value-of select="."/><xsl:text>*</xsl:text>
<!-- put a line break after last 'ELE' element -->
<xsl:if test="">
<xsl:text>
</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
but I don't know how to format the xsl:if test to check to see if this ELE
tag is the last ELE tag under the SEG tag...how would I do that?
<xsl:if test="not(following-sibling::rm:ELE)">...</xsl:if>
just like you said.
Cheers,
Wendell
thanks again,
-L
======================================================================
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
======================================================================
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
--+--

|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|