OK. It worked. I just had to put the following at the top of the xsl file to
have a global context for the variable
<xsl:variable name="server_name"
select="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='request']...@qualifier='serverName']"
/>
then I could refer to it anywhere in the xsl file via
<xsl:value-of select="$server_name"/>
John
On Thu, Oct 21, 2010 at 3:56 PM, John Preston <[email protected]> wrote:
> Thanks for the reply. I tried the following:
>
> <xsl:value-of
> select="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='request']...@qualifier='serverName']"/>
>
> but it seems to substitue and empty string although the DRI seems to have
> it in. Can you spot what I'm not doing.
>
> John
>
>
> On Thu, Oct 21, 2010 at 2:43 PM, Walker, David <[email protected]>wrote:
>
>> I don't think there is an XSL variable defined for this. But you can get
>> this data (and assign it to your own variable if you like) from the meta
>> section of the XML.
>>
>> <meta>
>> <pageMeta>
>> <metadata element="request" qualifier="serverName">
>>
>> --Dave
>>
>> ==================
>> David Walker
>> Library Web Services Manager
>> California State University
>> http://xerxes.calstate.edu
>>
>>
>> From: John Preston [[email protected]]
>> Sent: Thursday, October 21, 2010 12:39 PM
>> To: [email protected]
>> Subject: [Dspace-tech] System variables inside theme xsl
>>
>>
>> Can anyone say f there is a system variable that holds the server name
>> accessible within a theme .xsl file, like $theme-path.
>>
>> John
>>
>
>
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech