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 9076341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:05:23+00:00 2026-06-16T19:05:23+00:00

I have two questions which are probably too easy, but I don’t get it

  • 0

I have two questions which are probably too easy, but I don’t get it or found a solution yet here.
Hope maybe someone can help me 🙂

I want to output html5-video elements, and it seems to be the part for the mime-type together with codecs has to be written like that:

<source src="mymovie.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'/>

The type-attribute starts with single-quotes (!). If I don’t respect that and put it in double quotes and the codec inside in single quotes, in some cases Internet Explorer 9 can not load the movie (says the codec is not supported).

First question: How can I make XSLT to put just that attribute in single quotes?

Second question: Does anybody got the same problem with IE and double-quoted type-attribute? And is it really necessary that way, isn’t it against the rules?

Thanks a lot for every answer! 🙂

  • 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-06-16T19:05:24+00:00Added an answer on June 16, 2026 at 7:05 pm

    I don’t think you can enforce the serialization format for a single attribute value. Some XSLT processors might allow you to define the attribute value delimiter used when serializing the result tree. Which XSLT processor do you use?

    And I think if you write a literal result element in your XSLT code as

    <source src="mymovie.mp4" type="video/mp4; codecs=&quot;avc1.42E01E, mp4a.40.2&quot;"/>
    

    then when serializing the result tree the XSLT processor is free to use either single or double quotes as the attribute delimiter but if it uses double quotes it will properly escape the quotes in the attribute value so the result would look like

    <source src="mymovie.mp4" type="video/mp4; codecs=&quot;avc1.42E01E, mp4a.40.2&quot;">
    

    in HTML output method and any HTML5 parser should consume that just fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have basically two questions. How do I locate the default Rprofile which is
I have two questions here. How can I show the header of the pop
I have two questions. How can I get the spinner in the figure below
I have two questions. 1) I found a little gem of code for how
As per https://stackoverflow.com/questions/3264227/relations-with-multiple-keys-in-doctrine-1-2 , I have two tables which (as I can't get it
I'm probably trying to ask too much at once here, but any saintly, patient,
I have read these two SO questions: Which runtime libraries to ship? and License
Simple question which I can't seem to find an answer of: I have two
1) My question is that, when i have two large table which cannot be
The question has two parts, one of which I already have the answer for.

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.