This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Links XML/XSL


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]