[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Temporary tree elements and namespaces: Further question


Subject: Re: [xsl] Temporary tree elements and namespaces: Further question
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Thu, 14 Feb 2008 18:50:00 +0100 (CET)

marrocdanderfluff@xxxxxxxxxxx wrote:

> 	<xsl:variable name="mappings"
> select="document('map.map')/mappings/relationship" />

> [...]

> 	<xsl:value-of select="$mappings/relationship[@topic=@href]/@toc">

  $mappings is a sequence of relationship elements (rather than a
sequence of nodes that contain relationship childs.)  So I guess you
want instead:

    $mappings[@topic eq @href]/@toc

  BTW, do you really want the elements whose @topic and @href are
equal?  Maybe you want instead "@topic eq current()/@href" or
"current()/@topic eq @href" (but I didn't follow the post in details.)

  Regards,

--drkm























      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr


Current Thread