View Full Version : src attribute won't accept < or >

06-14-2004, 09:34 AM
I'm getting an error message:


The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

The character '<' cannot be used in an attribute value. Error processing resource 'http://(website address)/Images/101o...



Does anybody know a way to get around this limitation?

Thanks in advance,


06-14-2004, 10:31 AM
<%CDROM%> is not processed by the server. Is this an asp or jsp page? Whatever it is, it should have an = sign there


But I'm surprised it wasn't parsed by the server and didn't throw an error.
Are you really using a server-side language?

06-14-2004, 11:05 AM
Thanks for your answer.

It's a piece of code that makes QuickTime launch full screen with no intervening manual keypresses. Just up and full screen - click anywhere and it's gone. Fantastic! But the method relies on this code:

<script language="JavaScript" type="text/javascript">
QT_WriteOBJECT_XHTML('poster.mov', '95', '29', '',
'emb#bgcolor', 'black',
'align', 'middle',

...which calls fullscreen94.qtl (number 94 in my case)

The fullscreen94.qtl contains this code:

<?xml version="1.0"?>
<?quicktime type="application/x-quicktime-media-link"?>

...now this works well if the movie is on the D: Drive, but our movies are on a CDROM, and that's where we want them to be.

Trouble is, the line


doesn't work and complains about the < and >.

This works well (even without the =) if is is not placed within a src attribute line.

Is there some way to still reference the file on a CDROM from within a src line?



06-14-2004, 11:28 AM
I don't know what qtl is, is that a scripting language? You said that <%CDROM%> works in others except in the src property. Can you show that other code?

06-14-2004, 11:46 AM
I'm sorry - I can't say how the <%CDROM%> works elsewhere because it's part of a proprietary system that I know nothing about, so maybe it's asking too much to request help in this area.

But the <%CDROM%> does work in this system, just that it throws a curly one when used within the src="" line.

The qtl thing is really clever and I found it at:


I am using the second (javascript) method on the page.

I've been looking for a foolproof fullscreen button method in QuickTime for over a year and here it is. Pity is, I come up against this src attribute problem.

Oh well, can't have everything I guess.

Thanks again for your help.

06-14-2004, 12:13 PM
I don't think you can put variables in a qtl file which is an xml-formatted file. Maybe you were saying the <% %> works in an .asp or .jsp file?

06-14-2004, 12:25 PM
I guess it's an asp or jsp page - I know I'm not helping you by saying this, but it's a system that I can't delve any further into and that kind of knowledge is transparent to me.

All I know is that the <%CDROM%> method in this particular system does get a movie off a CDROM (there are other things that have to be stipulated elsewhere - like the drive letter etc.)

But I was only wondering if there was some way to put a variable (with < and >) inside a src line. I guess not.

There'll be a way around it, somehow, but it'll be complex I suppose.

Anyway, I really appreciate your help.

If I have brought to people's attention the great QuickTime fullscreen loading method, them I haven't wasted anyone's time. (I hope!).



06-14-2004, 12:41 PM
May I know what your web server is? IIS or what? Or you're not using one?

06-14-2004, 12:59 PM
It's a Windows web server - not mine incidentally - but, as I say, I don't own the code that makes this <%CDROM%> variable work. I can't therefore say anything about the server side code, because I don't know how it works.

My files are hosted on this server - and I might be able to get their help to do what I require. But it would just be a whole lot easier if I could present them with a solution that didn't involve them rewriting parts of their system.

If I could get a src="" line to deal with a variable I would be home and hosed, but I realise now that it is much more complicated than I imagined.

When I get an answer from the host server I will post it.

Many thanks once again.


06-14-2004, 01:09 PM
I'm sure people here will be able to help you better if you get more information from your host. :)