Not at all, you can access any entity within the document you're
processing (which is DRI by default). You can use
1) absolute locations ("/parent/element")
2) relative locations ("../parent")
3) or work directly with the element your template just matched - "."
- but you don't need to say "./element" explicitly, you just say
"element" - that's what's happening in your "dim:field" example.

What you can't do easily is get an element from a different input XML
document. The theme XSLT is processing the DRI document. But you can
also have it process another input document using an XSLT document()
call or (some Cocoon equivalent). That's what's happening with DIM.

So, while not exactly easy, it is possible to match even elements from
a different document. Try something like:
<xsl:value-of 
select="document('http://example.com/test.xml')/parent/element[@attribute]"
/>

In DSpace you could use that to fetch an attribute from METS when
processing DRI. But I don't know how to do the opposite (fetch an
attribute from DRI when you're processing METS), because you can't
refer to DRI by file name or URL. It might be possible somehow.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
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