Hi all,

   I have a trouble with using xpath "document($pathtodri)". Assume we have 
e template which process a mets.xml. Inside such template I want to use 
some data from a DRI document. Using "cocoon://path_to_DRI_doc" causes 
weird behaviour - timeouting without an end (processor, network as well as 
disk do almost nothing). Anyone alse has the same or similar experience?
Am I doing something wrong? What is the correct way to get the DRI docs 
inside the template?

   The example code:

<xsl:template name="foo">
        <xsl:apply-templates select="document($externalMetadataURL)"
                mode="list" />
</xsl:template>

<xsl:template
        match="mets:METS[mets:dmdSec/mets:mdWrap[@OTHERMDTYPE='DIM']]"
        mode="list">

        <xsl:variable name="dridocpath">
                <xsl:text>cocoon://xmlui/DRI/handle/ourprefix/id</xsl:text>
        <xsl:variable>

        <xsl:value-of
                
select="document($dridocpath)/dri:document/dri:meta/dri:pageMeta/dri:metadata[3]"
        />

</xsl:template>


Thanks for any help.

Vlastik

----------------------------------------------------------------------------
Vlastimil Krejčíř
Library and Information Centre, Institute of Computer Science
Masaryk University, Brno, Czech Republic
Email: krejcir (at) ics (dot) muni (dot) cz
Phone: +420 549 49 3872
ICQ: 163963217
Jabber: [email protected]
----------------------------------------------------------------------------

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to