[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL-FO & Images

Subject: Re: XSL-FO & Images
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 Apr 2005 13:13:46 -0400
xsl fo url
David,

I recommend to my students not to use url('uri-here') but to use url("uri-here") because URI syntax RFC 2396 section 2.3 allows a single quote in a URI ... if an authored URI has a single quote and the stylesheet creates an attribute with single quotes around the URI, then the single quotes in the parens are not properly balanced. RFC 2396 section 2.4.3 specifically excludes double quote in a URI, so I figure it is safe if my students use:

src='url("uri-here")'

or

src="url(&quot;uri-here&quot;)"

I hope this helps.

. . . . . . . . Ken

At 2005-04-18 17:35 +0100, David Carlisle wrote:
The syntax for the url attribute in xsl:external-graphic is
src="url('filenamehere.jpg')"
The url('  ...') is boilerplate
...
(Note I omitted the ' in my suggested code last time)
...
all the generated
fo:external-graphics should generate a synatx error unless they all have
url(' ') or if the processor does not enforce that, they should all work.



-- World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.