Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 14th, 2005, 12:07 PM
Authorized User
 
Join Date: Jun 2003
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kabe
Default & as &

hi, to pass some values trough an swf file i have to use this:
FLVPlayer.swf?s=mov.flv&w=320&h=240&z=1

but when parsed, it looks in html always (whatever I tried) like
FLVPlayer.swf?s=mov.flv&w=320&h=240&z= 1
as result the swf can't interprete querystring

did I forgot (or not yet know) a method to get it right in XSL?

thx, kb
 
Old March 14th, 2005, 02:09 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

If you are creating HTML then an ampersand must be escaped in a url, that is the official standard. If the flash plugin is misinterpreting this then it is at fault. Can you show a small sample of xml and transform?

--

Joe (Microsoft MVP - XML)
 
Old March 14th, 2005, 02:17 PM
Authorized User
 
Join Date: Jun 2003
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kabe
Default

the only value I read out of xml are the values of the variables in the querystring:
 - mov.flv, 320, 240 and 1

thus, in xsl, it looks like:
FLVPlayer.swf?s={source}&w={width}&h={heig ht}&z=1

and xml like:
<record>
<source>mov.flv<source>
<width>320</width>
<height>240</height>
</record>
 
Old March 14th, 2005, 02:26 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Well if that link is being put into a web page as an href and the browser is not "unescaping" the mark up I'm surprised. How are you using the link?

--

Joe (Microsoft MVP - XML)
 
Old March 14th, 2005, 02:58 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

XSLT processors output & as &amp; because the HTML specification requires it. If you have software that can't handle the escaped form, then it needs fixing.



Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript && keeps turnig into &amp;&amp; ayrton Pro VB.NET 2002/2003 3 June 27th, 2005 03:34 PM
send & recive mails from exchange & lotus sever zaheersharief Pro VB 6 1 May 16th, 2005 06:55 AM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM
XML from a DB recordset (removal of &lt;&gt;) Thodoris XML 3 July 13th, 2004 12:28 AM
sql & join tables & find a field in multiple table trangd Beginning PHP 2 January 29th, 2004 07:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.