Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: help needed with xlink:href [Thread Next] Re: help needed with xlink:hrefTo: NULL Date: 6/2/2006 3:23:00 AM
Hi Joris
Many thanks for your help, that worked, fantastic, THANK YOU!!!!!
Kind Regards,
Adam
Joris Gillis wrote:
> On Thu, 01 Jun 2006 14:10:22 +0200, adMjb <adam.mjbarnes@g...> wrote:
>
> > But my output is wrong, I want the weblink to be part of the text
> > somthing like this:
>
> If you want to output elements as well, you shouldn't be using
> 'xsl:value-of': it only returns text.
> Rather, use 'xsl:apply-templates' as much as you can:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:xlink="http://www.w3.org/1999/xlink"
> exclude-result-prefixes="xlink">
> <xsl:output method="xml" version="1.0" encoding="UTF-16"
> indent="no"/>
> <xsl:template match="document">
> <root>
> <end>
> <xsl:for-each select="//endnote">
> <endNoteText>
> <endNum>
> <xsl:number level="any" format="1"/>
> </endNum>
> <xsl:apply-templates />
> </endNoteText>
> </xsl:for-each>
> </end>
> </root>
> </xsl:template>
>
> <xsl:template match="link">
> <link href="{@xlink:href}">
> <xsl:apply-templates />
> </link>
> </xsl:template>
>
>
> </xsl:stylesheet>
>
>
> --
> Joris Gillis (http://users.telenet.be/root-jg/me.html)
> Veni, vidi, wiki (http://www.wikipedia.org)
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
