Helix84,

So I should put my variable where we are processing DRI, but where would that 
be in the item-view.xsl file?  Or would it be in some other file.  

I would assume each xsl file has one and  only one xml file that is fed to it, 
and that there must be a hierarchy of xsl files.  Is that right?  I don't have 
a clear picture how the xsl files get their xml data.  If you can explain that 
to me, I think it will take me a long way.

Thank you.  You have been very helpful!
-Jose

-----Original Message-----
From: helix84 [mailto:[email protected]] 
Sent: Tuesday, April 17, 2012 5:05 PM
To: Blanco, Jose
Cc: [email protected]
Subject: Re: [Dspace-tech] change to mirage.

Hi Jose,

I believe this is not a problem and that the only way to influence processing 
of mets or dim based on DRI is to save state in a variable when in DRI and use 
the variable in mets/dim. Consider this:

<!-- here we are processing DRI -->
<xsl:variable name='container'><xsl:value-of 
select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='focus'
and @qualifier='container']"/></xsl:variable>

    <!-- Generate the info about the item from the metadata section -->
    <xsl:template match="dim:dim" mode="itemSummaryView-DIM">
        <!-- here we are processing DIM -->
        <table class="ds-includeSet-table">
        <xsl:choose>
            <xsl:when test="$container = 'hdl:123456789/18574'">
                <xsl:call-template
name="itemSummaryView-DIM-fields-collection-specific-fields" />
            </xsl:when>
            <xsl:otherwise>
                <xsl:call-template name="itemSummaryView-DIM-fields" />
            </xsl:otherwise>
        </xsl:choose>
        </table>
    </xsl:template>

I haven't run into a problem with this. That being said, if anyone has an 
alternative suggestion, I'd be interested to hear it.

Regards,
~~helix84

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to monitoring Big 
Data applications. Try Boundary one-second resolution app monitoring today. 
Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to