OOXML extension for Japanese Layout Requirements

MURATA Makoto (FAMILY Given) eb2m-mrt at asahi-net.or.jp
Fri Feb 19 14:42:35 CET 2010


Dear colleagues,

To show the size of changes rquired for supporting kihonhanmen-based
page specifications, I created a RNC schema for the new elements and
attributes, and also created an NVDL script for combing this schema 
and the original 29500 schemas.  I would argue that the required changes 
are surprisingly small (1 elemenet and a few attributes) and make
Japanese users much happier.


1) kihonhanmen.rnc 

This schema includes "shared-commonSimpleTypes.rnc", which appears in 
the RNC version of the 29500 schemas.

default namespace = "http://www.example.com/asianLayout"
namespace w = "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
include "shared-commonSimpleTypes.rnc"

start = element kihonHanmen {
attribute w:eastAsia { s_ST_String },
attribute LengthOfLine { xsd:int },
attribute NumberOfLinesPerPage { xsd:int },
attribute LineGap { xsd:int },
attribute horizontalPositioning  { "centering" | xsd:int },
attribute verticalPositioning { "centering" | xsd:int }
}

2) kihonhanmen.nvdl

This NVDL script references nested.nvdl, which appears in the latest 
zip in my mail http://mailman.vse.cz/pipermail/sc34wg4/2010-February/001201.html


<?xml version="1.0" encoding="UTF-8"?>
<rules xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"
  xmlns:xi="http://www.w3.org/2001/XInclude" startMode="top">
  <mode name="nested">
    <xi:include href="nested.nvdl"/>
  </mode>
  <mode name="top">
    <namespace ns="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
      <validate schema="wml.xsd" useMode="nested">
        <context path="sectPr | sectPrChange">
          <mode>
            <xi:include href="nested.nvdl"/>
            <namespace ns="http://www.example.com/asianLayout">
              <validate schema="kihonhanmen.rnc" schemaType="application/relax-ng-compact-syntax" useMode="nested"/>
            </namespace>
          </mode>
        </context>
      </validate>
    </namespace>
  </mode>
</rules>


Cheers,
Makoto


More information about the sc34wg4 mailing list