xsl-list
[Top] [All Lists]

[xsl] [Fwd: Text from mixed content but not all embedded elements]

2009-03-11 17:25:47
I have a situation with an XML portion like the following:

<secTitle>Complements of <langData lang="lVernacular">le'e</langData> and other arguments<endnote id="nhabby">
     <p>We wish to thank those who helped us.</p>
</endnote>
</secTitle>


Using XSLT 1.0, I want to output the text of all but what is in the embedded <endnote> element. That is, the text output I want is

   Complements of le'e and other arguments

I know that if I use <xsl:copy-of select="text()"/> I can get all of the text nodes, but I want to limit it to all but what is within the <endnote> element.

Is there a way to do this in XSLT 1.0?

Thanks,

--Andy



--~------------------------------------------------------------------
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>