Hi Javier,

Thanks. I've been banging my head on the table for this.

Regards,
Brian


On Mon, Sep 2, 2013 at 2:19 AM, Javier Távara [via DSpace] <
[email protected]> wrote:

> The way I do:
>
> <xsl:template name="addJavascript">
>     <script type="text/javascript">
>         <xsl:text>
>         var theme_path = '</xsl:text><xsl:value-of
> select="$theme-path"/><xsl:text>',
>             login_message =
> '</xsl:text><i18n:text>xmlui.pirhua.login.message</i18n:text><xsl:text>',
>             contact_message =
> '</xsl:text><i18n:text>xmlui.pirhua.contact.message</i18n:text><xsl:text>';
>         </xsl:text>
>     </script>
> </xsl:template>
>
> You can replace XSLT tags the way you want.
>
>
> Javier Távara
>
>
> 2013/9/1 bcoballes <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4666963&i=0>
> >
>
>> Hi everyone,
>>
>> I would like to pass the URL <xsl:value-of
>> select="mets:FLocat[@LOCTYPE='URL']/@xlink:href"/> of the bitstream to
>> external javascript as variable. But when I declare it using this syntax:
>>
>> var x = '<xsl:value-of
>> select="mets:FLocat[@LOCTYPE='URL']/@xlink:href"/>';
>>
>> I received an javascript error 'Syntax error unexpected identifier'. How
>> can
>> I pass the value of the xsl:value-of select as javascript variable without
>> error.
>>
>> Any input is greatly appreciated,
>> Brian
>>
>>
>>
>> -----
>> Librarian In-Charge of Non-Print
>> Educational Media Center
>> Ateneo de Manila High School
>> Philippines
>> --
>> View this message in context:
>> http://dspace.2283337.n4.nabble.com/passing-variable-to-javascript-tp4666961.html
>> Sent from the DSpace - Tech mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>> Discover the easy way to master current and previous Microsoft
>> technologies
>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>> tutorial videos with LearnDevNow. Subscribe today and save!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>> _______________________________________________
>> DSpace-tech mailing list
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=4666963&i=1>
>>
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> List Etiquette:
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>
>
> ------------------------------------------------------------------------------
>
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft
> technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> DSpace-tech mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4666963&i=2>
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://dspace.2283337.n4.nabble.com/passing-variable-to-javascript-tp4666961p4666963.html
>  To unsubscribe from passing variable to javascript, click 
> here<http://dspace.2283337.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4666961&code=YmNvYmFsbGVzQGF0ZW5lby5lZHV8NDY2Njk2MXwtMTE4MjI3MDk5OQ==>
> .
> NAML<http://dspace.2283337.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
*Brian Aljer B. Coballes
Instructional Technology Center
Ateneo de Manila High School
Loyola Heights, Quezon City*
*Philippines*
*
*
*(063) 426-6001 loc. 6203
*
*
*

**
*"En todo amar y servir."*




-----
Librarian In-Charge of Non-Print 
Educational Media Center 
Ateneo de Manila High School 
Philippines
--
View this message in context: 
http://dspace.2283337.n4.nabble.com/passing-variable-to-javascript-tp4666961p4666974.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
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