<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Inasmuch as... &#187; XSL</title>
	<atom:link href="http://inasmuch.as/category/xsl/feed/" rel="self" type="application/rss+xml" />
	<link>http://inasmuch.as</link>
	<description>...Life&#039;s but a walking shadow</description>
	<lastBuildDate>Mon, 16 Aug 2010 10:47:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Second Working Draft of XSL 2.0</title>
		<link>http://inasmuch.as/2010/03/16/second-working-draft-of-xsl-2-0/</link>
		<comments>http://inasmuch.as/2010/03/16/second-working-draft-of-xsl-2-0/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 09:42:35 +0000</pubDate>
		<dc:creator>tkg</dc:creator>
				<category><![CDATA[XSL]]></category>

		<guid isPermaLink="false">http://inasmuch.as/?p=463</guid>
		<description><![CDATA[Inasmuch as significant new work – such as non-rectangular shapes and copyfitting  – has been done since the first public working draft of XSL 2.0, the second working draft is now available at http://www.w3.org/TR/xslfo20/. Two of the biggest additions are non-rectangular areas and copyfitting. Non-rectangular areas and copyfitting may seem like radical new steps for [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-variant: small-caps;">Inasmuch as</span> significant new work – such as non-rectangular shapes and copyfitting  – has been done since the first public working draft of XSL 2.0, the second working draft is now available at <a title="Latest version of Extensible Stylesheet Language (XSL) 2.0" href="http://www.w3.org/TR/xslfo20/">http://www.w3.org/TR/xslfo20/</a>. Two of the biggest additions are non-rectangular areas and copyfitting.<span id="more-463"></span></p>
<p>Non-rectangular areas and copyfitting may seem like radical new steps for XSL FO, but they are both in the first <a title="XSL Requirements Summary, W3C Working Draft 11-May-1998" href="http://www.w3.org/TR/1998/WD-XSLReq-19980511">XSL Requirements Summary</a> published in 1998! One thing that has changed since 1998 is that now XSL can say &#8220;area shapes will be SVG&#8221;, and everybody will nod wisely and get on with implementing or using non-rectangular areas expressed in SVG. Back in 1998, there was no SVG and no other standard way of expressing shapes that could have been nearly as usable for the purposes of XSL FO.</p>
]]></content:encoded>
			<wfw:commentRss>http://inasmuch.as/2010/03/16/second-working-draft-of-xsl-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1.5 talks at XML Prague 2010</title>
		<link>http://inasmuch.as/2010/01/08/1-5-talks-at-xml-prague-2010/</link>
		<comments>http://inasmuch.as/2010/01/08/1-5-talks-at-xml-prague-2010/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 14:50:49 +0000</pubDate>
		<dc:creator>tkg</dc:creator>
				<category><![CDATA[XML]]></category>
		<category><![CDATA[XSL]]></category>

		<guid isPermaLink="false">http://inasmuch.as/?p=411</guid>
		<description><![CDATA[Inasmuch as I was fortunate to again be selected to present or co-present two talks, I will be at XML Prague again this year. Going to a technical XML conference, in Prague, in the Spring, again, will be good; presenting the same number of talks as last year is just a bonus. The talks are: [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-variant: small-caps;">Inasmuch as</span> I was fortunate to again be selected to present or co-present two talks, I will be at XML Prague again this year. Going to a technical XML conference, in Prague, in the Spring, again, will be good; presenting the same number of talks as <a title="1.5 @ Prague" href="http://inasmuch.as/2009/02/04/15-prague/">last year</a> is just a bonus.</p>
<p>The talks are:</p>
<ul>
<li>What XSL 2.0 means for implementers and users — Discusses the changes that will have to take place under the hood of any XSL formatter that supports XSL 2.0 and what those additional capabilities can bring to your stylesheets.</li>
<li>Real time, all the time, ragtime XML — An update on the capabilities of <a title="Xcruciate" href="http://www.xcruciate.co.uk">Xcruciate</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://inasmuch.as/2010/01/08/1-5-talks-at-xml-prague-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reading JIS X 4051 online</title>
		<link>http://inasmuch.as/2009/11/12/reading-jis-x-4051-online/</link>
		<comments>http://inasmuch.as/2009/11/12/reading-jis-x-4051-online/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 10:20:24 +0000</pubDate>
		<dc:creator>tkg</dc:creator>
				<category><![CDATA[I18n]]></category>
		<category><![CDATA[XSL]]></category>

		<guid isPermaLink="false">http://inasmuch.as/?p=391</guid>
		<description><![CDATA[Inasmuch as the “Requirements for Japanese Text Layout” Note refers (and defers) a lot to JIS X 4051, &#8220;Formatting Rules for Japanese documents&#8221;,  it is helpful to also read it (or, for some of us at least, to look at the diagrams and puzzle through some of the text). You can buy the printed book [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-variant: small-caps;">Inasmuch as</span> the “<a title="Requirements for Japanese Text Layout" href="http://www.w3.org/TR/jlreq">Requirements for Japanese Text Layout</a>” Note refers (and defers) a lot to JIS X 4051, &#8220;Formatting Rules for Japanese documents&#8221;,  it is helpful to also read it (or, for some of us at least, to look at the diagrams and puzzle through some of the text). You can buy the printed book from the Japanese Standards Association <a title="Web Store page for JIS X 4061:2004" href="http://www.webstore.jsa.or.jp/webstore/Com/FlowControl.jsp?lang=en&amp;bunsyoId=JIS+X+4051%3A2004&amp;dantaiCd=JIS&amp;status=1&amp;pageNo=0">Web Store</a>, or you can view (but not print) the PDF version within your browser.  Here&#8217;s how:<span id="more-391"></span></p>
<ul>
<li>Go to <a title="http://www.jisc.go.jp/app/JPS/JPSO0020.html" href="http://www.jisc.go.jp/app/JPS/JPSO0020.html">http://www.jisc.go.jp/app/JPS/JPSO0020.html</a>, enter &#8220;X4051&#8243; in the first text input field (the one with the &#8220;JIS&#8221; prefix), then press enter.</li>
<li>On the next page, select &#8220;JISX4051&#8243;.</li>
<li>On the following page, there&#8217;ll be links to the PDFs of the parts of JIS X 4051. You can view them in your browser, but you can&#8217;t print them.  (If your browser launches in an external application to view PDFs,  all you might see is a bunch of blank pages.)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://inasmuch.as/2009/11/12/reading-jis-x-4051-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presentations page updated</title>
		<link>http://inasmuch.as/2009/10/05/presentations-page-updated/</link>
		<comments>http://inasmuch.as/2009/10/05/presentations-page-updated/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 14:03:42 +0000</pubDate>
		<dc:creator>tkg</dc:creator>
				<category><![CDATA[XSL]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://inasmuch.as/?p=381</guid>
		<description><![CDATA[Inasmuch as I added both my XML-in-Practice 2009 talk on XSL FO 2.0 and my XML Prague 2009 talks and posters to the &#8220;Presentations&#8221; page at http://www.menteithconsulting.com/wiki/Presentations, it is now up to date. The XSL FO 2.0 talk covers: a quick overview of XSL 1.1 (by building up a formatted page in the manner of [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-variant: small-caps;">Inasmuch as</span> I added both my <a title="XML-in-Practice 2009 Conference &amp; Exposition" href="http://www.idealliance.org/conferences_and_events/xmlinpractice_2009_conference__exposition">XML-in-Practice 2009</a> talk on XSL FO 2.0 and my <a title="XML Prague" href="http://www.xmlprague.cz/">XML Prague 2009</a> talks and posters to the &#8220;Presentations&#8221; page at <a title="Menteith Consulting &quot;Presentations&quot; page." href="http://www.menteithconsulting.com/wiki/Presentations">http://www.menteithconsulting.com/wiki/Presentations</a>, it is now up to date.<span id="more-381"></span></p>
<p>The <a title="'XSL FO 2.0' talk." href="http://www.menteithconsulting.com/wiki/XMLInPractice2009/XSLFO20">XSL FO 2.0 talk</a> covers: a quick overview of XSL 1.1 (by building up a formatted page in the manner of Genesis 1); the current uses for XSL; the W3C XSL FO subgroup; the XSL 2.0 <a title="XSL-FO 2.0 Workshop 2006: Report" href="http://www.w3.org/Style/XSL/2006-Workshop/Report.html">requirements workshop</a> and <a title="Extensible Stylesheet Language (XSL) Requirements Version 2.0" href="http://www.w3.org/TR/xslfo20-req/">requirements document</a>; and some examples of what will be possible with XSL 2.0.</p>
<p>The &#8220;<a title="'Testing XSLT' talk" href="http://www.menteithconsulting.com/wiki/XMLPrague2009/TestingXSLT">Testing XSLT</a>&#8221; talk from XML Prague 2009 covers more of the &#8220;what&#8221; and &#8220;why&#8221; of testing XSLT that previous renditions of the talk or tutorial. It consequently has fewer details about individual tools, but for that there&#8217;s now resource pages for <a title="'Testing XSLT' resource page." href="http://www.menteithconsulting.com/wiki/TestingXSLT">XSLT</a> and <a title="'Testing XSL FO' resource page." href="http://www.menteithconsulting.com/wiki/TestingXSLFO">XSL FO</a> tools on the <a title="Menteith Consulting Ltd" href="http://www.menteithconsulting.com/">Menteith Consulting</a> website.</p>
<p>The other XML Prague 2009 talk is about <a title="Xcruciate all-XML server" href="http://www.xcruciate.co.uk">Xcruciate</a>, where I was the second speaker with Mark Howe of Cyberporte, and the posters were about <a title="'XSL-FO 2.0' poster." href="http://www.menteithconsulting.com/wiki/XMLPrague2009/XSLFO20">XSL FO 2.0 requirements</a> and <a title="'Using XSLT for C code generation and testing' poster" href="http://www.menteithconsulting.com/wiki/XMLPrague2009/UsingXSLTforCcodegenerationandtesting">using XSLT</a> with <a title="xmlroff XSL formatter" href="http://xmlroff.org">xmlroff</a> to generate C source code and other things.</p>
]]></content:encoded>
			<wfw:commentRss>http://inasmuch.as/2009/10/05/presentations-page-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Survey: Where is XSL FO used?</title>
		<link>http://inasmuch.as/2009/08/21/where-is-xsl-fo-used/</link>
		<comments>http://inasmuch.as/2009/08/21/where-is-xsl-fo-used/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 00:00:00 +0000</pubDate>
		<dc:creator>tkg</dc:creator>
				<category><![CDATA[XSL]]></category>

		<guid isPermaLink="false">http://inasmuch.as/?p=359</guid>
		<description><![CDATA[Inasmuch as my talk at XML-in-Practice 2009 in September is &#8220;XSL FO 2.0: A Technical Overview&#8221;, I&#8217;ll be talking about the XSL FO 2.0 Requirements document and the work towards XSL FO 2.0 done to date, but I also want to highlight what can be done with XSL 1.1 and what is being achieved today. [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-variant: small-caps;">Inasmuch as</span> my talk at <a title="XML-in-Practice 2009 Conference &amp; Exposition" href="http://www.idealliance.org/conferences_and_events/xmlinpractice_2009_conference__exposition">XML-in-Practice 2009</a> in September is &#8220;XSL FO 2.0: A Technical Overview&#8221;, I&#8217;ll be talking about the <a title="Extensible Stylesheet Language (XSL) Requirements Version 2.0" href="http://www.w3.org/TR/xslfo20-req/">XSL FO 2.0 Requirements</a> document and the work towards XSL FO 2.0 done to date, but I also want to highlight what can be done with XSL 1.1 and what is being achieved today.</p>
<p>So I would like to know how you are using XSL FO.<span id="more-359"></span> Please reply to <a href="mailto:Tony.Graham%40MenteithConsulting.com">Tony.Graham@MenteithConsulting.com</a>.</p>
<p>To make it a bit easier for you, here are some categories:</p>
<ul>
<li>Use</li>
<li>Volume (e.g., pages per day/week/month/year/job)</li>
<li>When you started using XSL FO</li>
<li>Interesting aspects of job/output</li>
<li>Additional comments</li>
<li>Anonymous (yes/no)</li>
</ul>
<p>I am interested in all uses of XSL FO, but if your use is particularly off-the-wall, I may come back to you asking for a sample or a scan/photo of the completed work.</p>
<p>I will summarise the results back to here and to the lists where I&#8217;m also asking for information.</p>
<p>If you want to be anonymous, I won&#8217;t mention either you or your company by name in any results.</p>
<p>Some version of the results may end up being linked to from the <a title="The Extensible Stylesheet Language Family (XSL)" href="http://www.w3.org/Style/XSL/">W3C XSL page</a>: I haven&#8217;t organised anything with the XSL FO SG, but it seems like the sort of information that would be useful to have there.</p>
]]></content:encoded>
			<wfw:commentRss>http://inasmuch.as/2009/08/21/where-is-xsl-fo-used/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I get a tick out of U</title>
		<link>http://inasmuch.as/2009/08/04/i-get-a-tick-out-of-u/</link>
		<comments>http://inasmuch.as/2009/08/04/i-get-a-tick-out-of-u/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 07:12:40 +0000</pubDate>
		<dc:creator>tkg</dc:creator>
				<category><![CDATA[XSL]]></category>

		<guid isPermaLink="false">http://inasmuch.as/?p=295</guid>
		<description><![CDATA[Inasmuch as I couldn&#8217;t get a ✓, tick, check, &#38;check;, &#38;#x2713;, U+2713, CHECK MARK, call it what you will, into PDF on Ubuntu 8.04 with Antenna House V5, I had to find a font with it and tell the formatter where to find the font. Firefox could display the character, so I knew it had [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-variant: small-caps">Inasmuch as</span> I couldn&#8217;t get a ✓, tick, check, <code>&amp;check;</code>, <code>&amp;#x2713;</code>, U+2713, CHECK MARK, call it what you will, into PDF on Ubuntu 8.04 with Antenna House V5, I had to find a font with it and tell the formatter where to find the font.<span id="more-295"></span></p>
<p>Firefox could display the character, so I knew it had to be there somewhere. After a bit of hunting through <code>/usr/share/fonts</code> using FontForge, I found the OpenSymbol font, originally part of OpenOffice but now separately installable as the <code>ttf-opensymbol</code> package.</p>
<p>The first step in acquainting any XSL formatter with the font&#8217;s use is including the font name in a <code>font-family</code> value.  Specifying <code>font-family</code> on <code>fo:root</code> sets the default for the document:</p>
<pre>&lt;fo:root font-family="Georgia, opensymbol"
 font-selection-strategy="character-by-character"&gt;</pre>
<p>I used to have <code>symbol</code>, etc., in that list for use on Windows, but, sadly, I haven&#8217;t found a way to get a ✓ into PDF other than also installing the OpenSymbol font there. Specifying <code>font-selection-strategy</code> as <code>character-by-character</code> is just making sure the formatter will swap fonts if the first font doesn&#8217;t have a glyph.</p>
<p>How the XSL formatter finds the font is different for different formatters. The second, Antenna House-specific step is adding <code>/usr/share/fonts/truetype/openoffice</code>, which contains the font file, to the config file at <code>/usr/AHFormatterV5/etc/font-config.xml</code>:</p>
<pre>&lt;font-config&gt;
 &lt;!--otf-metrics-mode mode="typographic"/--&gt;
 &lt;!-- add your font folder here --&gt;
 &lt;!-- font-folder path="/home/user-name/fonts" --&gt;
 &lt;!-- /font-folder --&gt;
 &lt;font-folder path="/usr/AHFormatterV5_64/fonts"&gt;
 &lt;glyph-list file="ZapfDingbats-glyphname.txt" afm="ZapfDingbats.afm"/&gt;
 &lt;/font-folder&gt;
 &lt;font-folder path="/usr/share/fonts/truetype/msttcorefonts"/&gt;
 &lt;font-folder path="/usr/share/fonts/truetype/openoffice"/&gt;
&lt;/font-config&gt;</pre>
<p>And I get a tick out of U(buntu):</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-329" title="Tick in PDF on Ubuntu" src="http://inasmuch.as/wp-content/uploads/2009/08/tick.png" alt="Tick in PDF on Ubuntu" /></p>
]]></content:encoded>
			<wfw:commentRss>http://inasmuch.as/2009/08/04/i-get-a-tick-out-of-u/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Designing Japanese documents</title>
		<link>http://inasmuch.as/2009/07/23/designing-japanese-documents/</link>
		<comments>http://inasmuch.as/2009/07/23/designing-japanese-documents/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 12:22:26 +0000</pubDate>
		<dc:creator>tkg</dc:creator>
				<category><![CDATA[I18n]]></category>
		<category><![CDATA[XSL]]></category>

		<guid isPermaLink="false">http://inasmuch.as/?p=253</guid>
		<description><![CDATA[Inasmuch as the W3C Japanese Language Task Force&#8217;s &#8220;Requirements for Japanese Text Layout&#8221; Note was released last month, my article about it, &#8220;Designing Japanese documents&#8220;, is now available from tcworld magazine. The Note &#8220;describes requirements for general Japanese layout realized with technologies like CSS, SVG and XSL-FO&#8221;. It covers page design conventions as well as [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-variant: small-caps">Inasmuch as</span> the W3C Japanese Language Task Force&#8217;s &#8220;<a title="Requirements for Japanese Text Layout" href="http://www.w3.org/TR/jlreq">Requirements for Japanese Text Layout</a>&#8221; Note was released last month, my article about it, &#8220;<a href="http://www.tcworld.info/index.php?id=64">Designing Japanese documents</a>&#8220;, is now available from <a href="http://www.tcworld.info/">tcworld</a> magazine.<span id="more-253"></span></p>
<p>The Note &#8220;describes requirements for general Japanese layout realized with technologies like CSS, SVG and XSL-FO&#8221;. It covers page design conventions as well as how to layout lines. Naturally it covers Japanese-specific details such as vertical text, mixing Japanese and Latin text, ruby (small-sized, supplementary text), warichu (inline cutting notes), tate-chu-yoko (horizontal in vertical setting), and furiwake (multiple phrases or sentences in in the middle of a line).</p>
<p>The article provides an overview of the Note (and was good practice for the in-depth analysis that needs to be done for one of the <a title="Requirement for &quot;Further improved non-Western language support&quot;" href="http://www.w3.org/TR/xslfo20-req/#N66934">XSL 2.0 requirements</a>), but if you want all the details, then you need the Note (and if you <em>really</em> want <em>all</em> the details, then you also need JIS X 4051, and possibly assistance in reading it).</p>
]]></content:encoded>
			<wfw:commentRss>http://inasmuch.as/2009/07/23/designing-japanese-documents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XSL 2.0 at XML-in-Practice 2009</title>
		<link>http://inasmuch.as/2009/07/20/xsl-2-0-at-x-i-p-2009/</link>
		<comments>http://inasmuch.as/2009/07/20/xsl-2-0-at-x-i-p-2009/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 17:13:24 +0000</pubDate>
		<dc:creator>tkg</dc:creator>
				<category><![CDATA[XSL]]></category>

		<guid isPermaLink="false">http://tkg.menteith.com/?p=226</guid>
		<description><![CDATA[Inasmuch as my proposal was accepted, I will be presenting about XSL 2.0 features and progress at XML-in-Practice 2009 on 30th September in Arlington, VA, USA.]]></description>
			<content:encoded><![CDATA[<p><span style="font-variant: small-caps">Inasmuch as</span> my proposal was accepted, I will be presenting about XSL 2.0 features and progress at <a href="http://www.idealliance.org/conferences_and_events/xmlinpractice_2009_conference__exposition">XML-in-Practice 2009</a> on 30th September in Arlington, VA, USA.</p>
]]></content:encoded>
			<wfw:commentRss>http://inasmuch.as/2009/07/20/xsl-2-0-at-x-i-p-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sizing a graphic to the font size in XSL FO</title>
		<link>http://inasmuch.as/2009/03/16/sizing-a-graphic-to-the-font-size/</link>
		<comments>http://inasmuch.as/2009/03/16/sizing-a-graphic-to-the-font-size/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 10:02:59 +0000</pubDate>
		<dc:creator>tkg</dc:creator>
				<category><![CDATA[XSL]]></category>
		<category><![CDATA[xmlroff]]></category>

		<guid isPermaLink="false">http://tkg.menteith.com/?p=155</guid>
		<description><![CDATA[Making a poster about XSLT usage in xmlroff for XML Prague, the fun moment was replacing the uses of &#8220;xmlroff&#8221; with the xmlroff logo. To do the deed, I added some XSL attributes to the &#60;inline-graphic&#62; element in my well-formed XML.  I also made an entity declaration for &#38;xmlroff; so I wouldn&#8217;t have to repeat [...]]]></description>
			<content:encoded><![CDATA[<p>Making a poster about XSLT usage in xmlroff for XML Prague, the fun moment was replacing the uses of &#8220;xmlroff&#8221; with the xmlroff logo.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-156" title="xmlroff-logo-font-size" src="http://tkg.menteith.com/wp-content/uploads/2009/03/xmlroff-logo-font-size.png" alt="xmlroff-logo-font-size" /></p>
<p><span id="more-155"></span>To do the deed, I added some XSL attributes to the <code>&lt;inline-graphic&gt;</code> element in my well-formed XML.  I also made an entity declaration for <code>&amp;xmlroff;</code> so I wouldn&#8217;t have to repeat the markup each time (and so, having got it right once, it would be right everywhere).</p>
<pre style="text-align: left;">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE poster [
&lt;!ENTITY xmlroff '&lt;inline-graphic src="xmlroff.svg" alignment-adjust="-22.5&amp;#37;"
height="from-parent(&amp;apos;font-size&amp;apos;)"/&gt;' &gt;
]&gt;
&lt;poster&gt;
&lt;title&gt;Using XSLT in &amp;xmlroff; for C Code Generation and XSL FO Testing&lt;/title&gt;
&lt;body&gt;
&lt;intro&gt;
&lt;para&gt;&amp;xmlroff; (http://xmlroff.org) is a fast, free, high-quality,...</pre>
<p>where:</p>
<ul>
<li><code>height="from-parent(&amp;apos;font-size&amp;apos;)"</code> sets the graphic height to the current font-size</li>
<li><code>alignment-adjust="-22.5&amp;#37;"</code> (where &#8220;<code>&amp;#37;</code>&#8221; is the numeric reference for &#8220;%&#8221;) moves the bottom of the graphic down so the baseline of the logo text lines up with the baseline of the regular text. When the <code>alignment-adjust</code> value is a percentage, it is calculated relative to the height, so it remains correct when the font size changes.</li>
</ul>
<p>The XSL attributes are just copied through when transforming to XSL FO:</p>
<pre>&lt;xsl:template match="inline-graphic"&gt;
  &lt;fo:external-graphic
    src="url('{@src}')"
    xsl:use-attribute-sets="graphic-atts"
    content-height="scale-to-fit"
    content-width="scale-to-fit"
    scaling-method="resample-any-method"&gt;
    &lt;xsl:copy-of select="@height | @width | @content-height | @content-width |
@scaling-method | @alignment-adjust"/&gt;
  &lt;/fo:external-graphic&gt;
&lt;/xsl:template&gt;</pre>
<p>The result is slightly more interesting text, but also more readable where sentences and paragraphs that started with the all-lowercase &#8220;xmlroff&#8221; now start with the xmlroff logo.</p>
]]></content:encoded>
			<wfw:commentRss>http://inasmuch.as/2009/03/16/sizing-a-graphic-to-the-font-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XSL 2.0 Requirements and survey</title>
		<link>http://inasmuch.as/2008/06/26/xsl-20-requirements-and-survey/</link>
		<comments>http://inasmuch.as/2008/06/26/xsl-20-requirements-and-survey/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 22:59:19 +0000</pubDate>
		<dc:creator>tkg</dc:creator>
				<category><![CDATA[XSL]]></category>

		<guid isPermaLink="false">http://tkg.menteith.com/2008/06/26/xsl-20-requirements-and-survey/</guid>
		<description><![CDATA[The W3C XSL FO subgroup is working towards XSL-FO 2.0. The first public working draft of the XSL-FO 2.0 Requirements document was published at http://www.w3.org/TR/xslfo20-req/ back in March. The best way for the Requirements document, and an eventual XSL-FO 2.0, to reflect peoples&#8217; needs is for people to read the document and provide feedback. Two [...]]]></description>
			<content:encoded><![CDATA[<p>The W3C XSL FO subgroup is working towards XSL-FO 2.0.  The first public working draft of the XSL-FO 2.0 Requirements document was published at <a href="http://www.w3.org/TR/xslfo20-req/" title="XSL 2.0 Requirements">http://www.w3.org/TR/xslfo20-req/</a> back in March.  The best way for the Requirements document, and an eventual XSL-FO 2.0, to reflect peoples&#8217; needs is for people to read the document and provide feedback.</p>
<p>Two of the best ways for you to provide feedback about XSL-FO and the requirements for XSL-FO 2.0 are:</p>
<ul>
<li>  Indicate which areas of XSL-FO are important to you by completing the survey at <a href="http://www.w3.org/2002/09/wbs/1/xslfo20requirements/" title="XSLT 2.0 Requirements Survey">http://www.w3.org/2002/09/wbs/1/xslfo20requirements/</a></li>
<li>Provide feedback on individual requirements using the <a href="http://www.w3.org/XML/2008/01/xsl-fo-bugzilla.html" title="W3C public Bugzilla system">W3C public Bugzilla system</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://inasmuch.as/2008/06/26/xsl-20-requirements-and-survey/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
