On Fri, Mar 30, 2012 at 18:50, John Preston <[email protected]> wrote:
> Thanks. One other quick question. Within the <xsl:if
> select="/dri:document/dri:body/dri:div[@n='item-view']"> ... </xsl:if>
> I want to access some metadata that the item has attached. I'm trying
> something like <xsl:value-of select="dim:field[@qualifier='uri' and
> @element='identifier' and @mdschema='dc']"/> but it doesn't return
> anything. Can you see what I'm doing wrong. I'm trying all of this
> within the <xsl:template match="dri:body"> template.
This is not directly possible because DRI and DIM are two different
input documents to XSLT.
However, you can "remember" the type of page when you're processing
DRI, store it into a variable and then read that variable when you're
processing DIM:
<xsl:variable name="page_type"
select="/dri:document/dri:body/dri:div[@n='item-view']/@n" />
<xsl:template match="dim:dim" mode="whatever">
...
<xsl:if select="$page_type = 'item-view'">
<xsl:value-of select="dim:field[@qualifier='uri' and>
@element='identifier' and @mdschema='dc']"/>
</xsl:if>
...
</xsl:template>
Code is untested, from the top of my head.
Regards,
~~helix84
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech