Subject: Re: [xsl] Links XML/XSL From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx> Date: Fri, 1 Jun 2001 11:22:58 +0100 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Links XML/XSL, Michael Kay | Thread | RE: XSL history (was RE: [xsl] XSL , Michael Kay |
Re: [xsl] Need better ways to do th, Jeni Tennison | Date | RE: [xsl] Problem in making choices, Michael Kay |
Month |