xsl-list
[Top] [All Lists]

[xsl] omitting a piece of text

2009-01-30 09:39:57
Problem area
1.1-3

Current output:
<p>
<span class="current_ref_in_footnote">1.1-3</span>1.1-3Ou<span 
class="Alternate"Quando Deus co........</span>
</p>

How do I exclude the "1.1-3" the second time?

Desired output:
<p>
<span class="current_ref_in_footnote">1.1-3</span> Ou<span 
class="Alternate"Quando Deus co........</span>
</p>

 or

<p>
<span class="current_ref_in_footnote">1.1-3 </span>Ou<span 
class="Alternate"Quando Deus co........</span>
</p>

source XML
No principio Deus criou os ceus e a terra.<PW guid="5775" style="Notes" 
width="3" height="1.5" title="Popup">1.1-3<HR/>Ou <PN 
data="Alternate"Quando Deus come..................</PN><LT>*</LT></PW>

In my XSLT I match PW
<xsl:element name="p">
        <span class="current_ref_in_footnote">
                <xsl:apply-templates select="text()[1]"/>
        </span>
        <xsl:apply-templates/>
</xsl:element>

Jim Albright
704 843-0582
JAARS, Speeding Bible Translation
Wycliffe, Partners in Bible Translation


--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>