This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Links XML/XSL
- To: "Burge, Morais L Mr USAPA" <Morais dot Burge at USAPA dot ARMY dot MIL>
- Subject: Re: [xsl] Links XML/XSL
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Fri, 1 Jun 2001 11:22:58 +0100
- CC: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Organization: Jeni Tennison Consulting Ltd
- References: <5183E5ED9F26D41181A100805F953F6715E56A@usapa3>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Morais,
> The problem is with links in XML file and XSL. The text after the
> extlink does not show up in the browser.
Your XML is a classic example of mixed content (text and elements
combined). You are usually better off using a *push* method with mixed
content because it means that the content is dealt with as it comes -
the processor takes the burden of working out what to do with what.
So rather than using xsl:for-each, do:
<xsl:apply-templates select="paratext" />
And then have templates to handle any special elements within the
paratext content. For example, for the extlink element, have:
<xsl:template match="extlink">
<A href="{@fileref}"><xsl:apply-templates /></A>
</xsl:template>
I hope that helps,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list