Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7567923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:47:29+00:00 2026-05-30T14:47:29+00:00

im doing a quick update for a site but xslt is not my thing

  • 0

im doing a quick update for a site but xslt is not my thing and it seems to be failing with the code i code looking at the generated source – have included both below:

current code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
<xsl:stylesheet
  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:msxml="urn:schemas-microsoft-com:xslt"
  xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:tagsLib="urn:tagsLib"
  exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets tagsLib ">


<xsl:output method="xml" omit-xml-declaration="yes"/>

<xsl:param name="currentPage"/>

<xsl:template match="/">

<xsl:if test="string-length($currentPage/mp4videoLinkId) > 0">
  <xsl:variable name="videoID" select="$currentPage/mp4videoLinkId" />
  <xsl:variable name="srtID" select="$currentPage/mp4videoSRTId" />
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  <script src="flowplayer-3.2.6.min.js"></script>
  <script src="flowplayer.ipad-3.2.2.min.js"></script>

  <!-- player container-->
  <a href="{$videoID}" style="display:block;width:473px;height:310px;" id="ipad"></a>

  <script type="text/javascript">
  $f("ipad", "flowplayer-3.2.7.swf",{
    clip: {
      autoPlay: false,
      url: '{$videoID}',

      // this is the Timed Text file with captions info
      captionUrl: '{$srtID}'
    },
    plugins:  {

      captions: {
        url: 'flowplayer.captions-3.2.3.swf',

        // pointer to a content plugin (see below)
        captionTarget: 'content'
      },

      // configure a content plugin to look good for our purpose
      content: {
        url:'flowplayer.content-3.2.0.swf',
        bottom: 25,
        width: '80%',
        height:40,
        backgroundColor: 'transparent',
        backgroundGradient: 'none',
        borderRadius: 4,
        border: 0,
        textDecoration: 'outline',
        style: {
          body: {
            fontSize: 14,
            fontFamily: 'Arial',
            textAlign: 'center',
            color: '#ffffff'
          }
        }
      }
    }
  }).ipad();
  </script>  
</xsl:if>

</xsl:template>

</xsl:stylesheet>

generated source:
(as you can see it breaking the code and not closing and then showing the {$tags}) what am i missing?

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" /><script src="flowplayer-3.2.6.min.js" /><script src="flowplayer.ipad-3.2.2.min.js" /><a href="mp4/assist-mi-car-parking.mp4" style="display:block;width:473px;height:310px;" id="ipad" /><script type="text/javascript">
  $f("ipad", "flowplayer-3.2.7.swf",{
    clip: {
      autoPlay: false,
      url: '{$videoID}',

      // this is the Timed Text file with captions info
      captionUrl: '{$srtID}'
    },
    plugins:  {

      captions: {
        url: 'flowplayer.captions-3.2.3.swf',

        // pointer to a content plugin (see below)
        captionTarget: 'content'
      },

      // configure a content plugin to look good for our purpose
      content: {
        url:'flowplayer.content-3.2.0.swf',
        bottom: 25,
        width: '80%',
        height:40,
        backgroundColor: 'transparent',
        backgroundGradient: 'none',
        borderRadius: 4,
        border: 0,
        textDecoration: 'outline',
        style: { 
          body: { 
            fontSize: 14, 
            fontFamily: 'Arial',
            textAlign: 'center',
            color: '#ffffff'
          } 
        } 
      }
    }
  }).ipad();
  </script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:47:31+00:00Added an answer on May 30, 2026 at 2:47 pm

    The AVT (Attribute Value Template) convention in XSLT is defined only for attribute values — as the name of this feature clearly says.

    Expressions inside curly braces that are part of a text node are not evaluated. One needs to use the <xsl:value-of> instruction.

    Solution:

    Replace:

    url: '{$videoID}', 
    

    with:

    url: '<xsl:value-of select="$videoID"/>', 
    

    Similarly replace:

      captionUrl: '{$srtID}'   
    

    with:

      captionUrl: '<xsl:value-of select="$srtID"/>'   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing code like this, doing a little quick and dirty timing: var sw
I need a quick hand figuring out what this code is doing, and how
I'm looking to set up a Kohana 2.3.4 site, and would like to have
Here's some quick code I am doing. (I removed some of it to make
I often find myself doing quick checks like this: if (!eregi('.php', $fileName)) { $filename
I'm at a client doing some quick fixes to their access application. It was
I'm doing some real quick and dirty benchmarking on a single line of C#
as a quick test of formatting very large, precise numbers i'm doing: (number is
This should a quick question for some easy rep. I'm doing some PHP Website
Doing an ajax get request works as expected using the following code: $.ajax({ type:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.