]> granicus.if.org Git - docbook-dsssl/commitdiff
Added new parameter keep.relative.image.uris
authorNorman Walsh <ndw@nwalsh.com>
Thu, 27 Oct 2005 13:44:04 +0000 (13:44 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 27 Oct 2005 13:44:04 +0000 (13:44 +0000)
xsl/fo/param.ent
xsl/fo/param.xweb
xsl/html/param.ent
xsl/html/param.xweb
xsl/params/keep.relative.image.uris.xml [new file with mode: 0644]

index 3f6b9a8da210f415dcac7ca237c2c5e4335b2d7d..1d8957ac4da9b3776f928f71bbaa7fc9dd471161 100644 (file)
 <!ENTITY abstract.title.properties SYSTEM "../params/abstract.title.properties.xml">
 <!ENTITY itemizedlist.label.width SYSTEM "../params/itemizedlist.label.width.xml">
 <!ENTITY orderedlist.label.width SYSTEM "../params/orderedlist.label.width.xml">
+<!ENTITY keep.relative.image.uris SYSTEM "../params/keep.relative.image.uris.xml">
index 570becb8fb22ad2005f18be30f3745cddb485c91..b673137c656edfc20baf8109990ed18031ae295d 100644 (file)
@@ -281,6 +281,7 @@ generate.section.toc.level;
 &use.role.for.mediaobject;
 &ignore.image.scaling;
 &img.src.path;
+&keep.relative.image.uris;
 </reference>
 
 <reference id="general"><title>Pagination and General Styles</title>
@@ -664,6 +665,7 @@ around all these parameters.</para>
 <src:fragref linkend="itemizedlist.properties.frag"/>
 <src:fragref linkend="itemizedlist.label.properties.frag"/>
 <src:fragref linkend="itemizedlist.label.width.frag"/>
+<src:fragref linkend="keep.relative.image.uris.frag"/>
 <src:fragref linkend="l10n.gentext.default.language.frag"/>
 <src:fragref linkend="l10n.gentext.language.frag"/>
 <src:fragref linkend="l10n.gentext.use.xref.language.frag"/>
index 0c388debbdd5b264877d282c98768246e7773181..db3ad4c9c0095d1859edd2420719fd925a6ba648 100644 (file)
 <!ENTITY annotation.graphic.open SYSTEM "../params/annotation.graphic.open.xml">
 <!ENTITY annotation.graphic.close SYSTEM "../params/annotation.graphic.close.xml">
 <!ENTITY annotation.css SYSTEM "../params/annotation.css.xml">
+<!ENTITY keep.relative.image.uris SYSTEM "../params/keep.relative.image.uris.xml">
index e1cca619fde50326e03ae26e014cc90a4a2c1ae4..281ff739cab0802357da11fde4f4eab182774b4e 100644 (file)
@@ -287,6 +287,7 @@ stylesheet like this:</para>
 
 <reference id="graphics"><title>Graphics</title>
 &img.src.path;
+&keep.relative.image.uris;
 &graphic.default.extension;
 &default.image.width;
 &nominal.image.width;
@@ -588,6 +589,7 @@ around all these parameters.</para>
 <src:fragref linkend="index.prefer.titleabbrev.frag"/>
 <src:fragref linkend="ignore.image.scaling.frag"/>
 <src:fragref linkend="inherit.keywords.frag"/>
+<src:fragref linkend="keep.relative.image.uris.frag"/>
 <src:fragref linkend="l10n.gentext.default.language.frag"/>
 <src:fragref linkend="l10n.gentext.language.frag"/>
 <src:fragref linkend="l10n.gentext.use.xref.language.frag"/>
diff --git a/xsl/params/keep.relative.image.uris.xml b/xsl/params/keep.relative.image.uris.xml
new file mode 100644 (file)
index 0000000..cee478d
--- /dev/null
@@ -0,0 +1,28 @@
+<refentry id="keep.relative.image.uris">
+<refmeta>
+<refentrytitle>keep.relative.image.uris</refentrytitle>
+<refmiscinfo role="type">boolean</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>keep.relative.image.uris</refname>
+<refpurpose>Should image URIs be resolved against xml:base?</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='keep.relative.image.uris.frag'>
+<xsl:param condition="html" name="keep.relative.image.uris" select="1"/>
+<xsl:param condition="fo" name="keep.relative.image.uris" select="0"/>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>If non-zeor, relative URIs (in, for example fileref attributes) will
+be used in the generated output. Otherwise, the URIs will be made absolute
+with respect to the base URI.</para>
+
+<para>Note that the stylesheets calculate (and use) the absolute form
+for some purposes, this only applies to the resulting output.</para>
+
+</refsect1>
+</refentry>