cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <>
Subject using an external document
Date Sat, 11 Dec 1999 17:19:44 GMT
I am trying to read values from external documents
This is roughly what all the documents look like:
    (the ones doing the loading and the ones that are loaded)

    <about>blah blah blah</about>
        <link type="parent">

I am trying to use this template to use the "uri" of my parent link, to pull in the top level
node of parent external document into a variable, then access it's "about" and "title" elements,
via the variable.

<xsl:template match="link" mode="parent">
    <xsl:variable name="lp" select="document(uri)"/>
    <a href="{uri}" title="{$lp/about}"><xsl:value-of select="$lp/title"/></a>

I am getting an empty anchor <a href="../ma.xml" title=""></a>

Is this possible with a standard Cocoon 1.5 setup?
Or am I just doing it all wrong/

thanks Jeremy


   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <>     <>
    <phone:+44.[0].207.737.6831>        <>

View raw message