Re: [xsl] XSL-FO & Images

Subject: Re: [xsl] XSL-FO & Images
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 Apr 2005 13:13:46 -0400
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