<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16762" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Ben,</FONT></DIV>
<DIV><FONT face=Arial size=2>Actually, I think that note in Section 6.4.13 
reinforces my point rather than contradicts it.&nbsp; Perhaps my example was 
confusing because I switched two things.&nbsp; I switched both the writing mode 
and the margins.&nbsp; If I had switched just writing mode the effect would be 
more obvious.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The problem in XEP is that when 
writing-mode="rl-tb", then "margin-left" incorrectly appears on the right side 
of the page.&nbsp; My reading of the spec in both sections is that "left" means 
"left", and is not dependent on the writing mode.&nbsp; It is the "start" 
properties mean "left" or "right" depending on the writing-mode.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Bob Stayton<BR>Sagehill Enterprises<BR><A 
href="mailto:bobs@sagehill.net">bobs@sagehill.net</A></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=ben.m.wynn@rrd.com 
  href="mailto:ben.m.wynn@rrd.com">ben.m.wynn@rrd.com</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=xep-support@renderx.com 
  href="mailto:xep-support@renderx.com">xep-support@renderx.com</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, April 21, 2009 6:25 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [xep-support] Incorrect page 
  margins when writing-mode="rl-tb"</DIV>
  <DIV><BR></DIV><BR><FONT face=sans-serif size=2>Hi Bob,</FONT> <BR><BR><FONT 
  face=sans-serif size=2>I've looked over Section 5.3 of the spec, but Section 
  6.4.13 seems to trump it... &nbsp;it says that such mappings don't apply to 
  the simple-page-master.</FONT> <BR><BR><FONT face=sans-serif 
  size=2>Specificly: </FONT><BR><FONT face=sans-serif size=2><A 
  href="http://www.w3.org/TR/xsl/">http://www.w3.org/TR/xsl/</A></FONT> 
  <BR><FONT face=sans-serif size=2>Section 6.4.13: simple-page-master</FONT> 
  <BR><BR><FONT face=sans-serif size=2>"""</FONT> <BR><FONT 
  size=3><B>Note:</B></FONT> 
  <P><FONT size=3>The reference points for the page-viewport-area 
  content-rectangle are in terms of the "top", "bottom", "left", and "right" 
  rather than "before-edge", "after-edge", "start-edge", and "end-edge" because 
  users see the media relative to its orientation and not relative to the 
  <B>writing-mode</B> currently in use. </FONT>
  <P><FONT face=sans-serif size=2>"""</FONT> <BR><FONT face=sans-serif 
  size=2>(bolding is from the spec, not mine)</FONT> <BR><BR><FONT 
  face=sans-serif size=2>-Ben Wynn</FONT> <BR><BR><BR><TT><FONT 
  size=2>owner-xep-support@renderx.com wrote on 04/20/2009 06:25:09 
  PM:<BR><BR>&gt; Hi,<BR>&gt; I don't think there was a response to this bug 
  report. &nbsp;Is this something <BR>&gt; that will be addressed?<BR>&gt; 
  <BR>&gt; Bob Stayton<BR>&gt; Sagehill Enterprises<BR>&gt; 
  bobs@sagehill.net<BR>&gt; <BR>&gt; <BR>&gt; ----- Original Message ----- 
  <BR>&gt; From: "Bob Stayton" &lt;bobs@sagehill.net&gt;<BR>&gt; To: 
  &lt;xep-support@renderx.com&gt;<BR>&gt; Sent: Friday, March 06, 2009 2:43 
  AM<BR>&gt; Subject: [xep-support] Incorrect page margins when 
  writing-mode="rl-tb"<BR>&gt; <BR>&gt; <BR>&gt; &gt;I believe I have found a 
  bug in XEP's interpretation of margin-left and<BR>&gt; &gt; margin-right on an 
  fo:simple-page-master when the writing-mode="rl-tb".<BR>&gt; &gt;<BR>&gt; &gt; 
  I attach two FO files that illustrate the problem:<BR>&gt; &gt;<BR>&gt; &gt; 
  test-lr.fo &nbsp;is an FO file with writing-mode="lr-tb" on the fo:root 
  <BR>&gt; &gt; element,<BR>&gt; &gt; and margin-left="1.5in" 
  margin-right="0.5in" on the fo:simple-page-master<BR>&gt; &gt; with 
  master-name="body-first"<BR>&gt; &gt;<BR>&gt; &gt; test-rl.fo is an FO file 
  with writing-mode="rl-tb" on the fo:root element,<BR>&gt; &gt; and 
  margin-left="0.5in" margin-right="1.5in" on the fo:simple-page-master<BR>&gt; 
  &gt; with master-name="body-first"<BR>&gt; &gt;<BR>&gt; &gt; Note that the 
  values of the left and right margins are swapped between the<BR>&gt; &gt; two 
  files.<BR>&gt; &gt;<BR>&gt; &gt; I also attach the PDF outputs:<BR>&gt; 
  &gt;<BR>&gt; &gt; xep-lr.pdf &nbsp;shows the first page with a left margin of 
  1.5in and writing<BR>&gt; &gt; mode left-to-right<BR>&gt; &gt;<BR>&gt; &gt; 
  xep-rl.pdf &nbsp;shows the first page with a left margin of 1.5in and 
  writing<BR>&gt; &gt; mode right-to-left<BR>&gt; &gt;<BR>&gt; &gt; Note that 
  the margins are not swapped in the PDF outputs.<BR>&gt; &gt; I believe 
  xep-rl.pdf should have a left margin of 0.5in, not 1.5in. &nbsp;The<BR>&gt; 
  &gt; XSL-FO spec section 5.3 says that when writing-mode is rl-tb then left 
  <BR>&gt; &gt; maps<BR>&gt; &gt; to end and right maps to start. &nbsp;That is 
  not the case in the PDF files I<BR>&gt; &gt; have attached.<BR>&gt; 
  &gt;<BR>&gt; &gt; Is this a known problem?<BR>&gt; &gt;<BR>&gt; &gt; Bob 
  Stayton<BR>&gt; &gt; Sagehill Enterprises<BR>&gt; &gt; 
  bobs@sagehill.net<BR>&gt; &gt;<BR>&gt; &gt; <BR>&gt; <BR>&gt; 
  -------------------<BR>&gt; (*) To unsubscribe, send a message with words 
  'unsubscribe xep-support'<BR>&gt; in the body of the message to 
  majordomo@renderx.com from the address<BR>&gt; you are subscribed 
  from.<BR>&gt; (*) By using the Service, you expressly agree to these Terms of 
  Service <BR>&gt; 
  http://www.renderx.com/terms-of-service.html<BR></FONT></TT></P></BLOCKQUOTE></BODY></HTML>