DR 09-0297 WML: Distribution of elements among Parts
MURATA Makoto (FAMILY Given)
eb2m-mrt at asahi-net.or.jp
Fri Nov 5 10:49:12 CET 2010
Dear colleagues,
I can now automatically create a list of elements (ns name, local name)
for each OPC part. For example, for the OPC part WordprocessingML Web
Settings, I have the following list. Although, the XSD schema (wml.xsd)
contains many elements, this list has only those elements which can
appear in this OPC part.
http://purl.oclc.org/ooxml/wordprocessingml/main,webSettings
http://purl.oclc.org/ooxml/wordprocessingml/main,frameset
http://purl.oclc.org/ooxml/wordprocessingml/main,divs
http://purl.oclc.org/ooxml/wordprocessingml/main,encoding
http://purl.oclc.org/ooxml/wordprocessingml/main,optimizeForBrowser
http://purl.oclc.org/ooxml/wordprocessingml/main,relyOnVML
http://purl.oclc.org/ooxml/wordprocessingml/main,allowPNG
http://purl.oclc.org/ooxml/wordprocessingml/main,doNotRelyOnCSS
http://purl.oclc.org/ooxml/wordprocessingml/main,doNotSaveAsSingleFile
http://purl.oclc.org/ooxml/wordprocessingml/main,doNotOrganizeInFolder
http://purl.oclc.org/ooxml/wordprocessingml/main,doNotUseLongFileNames
http://purl.oclc.org/ooxml/wordprocessingml/main,pixelsPerInch
http://purl.oclc.org/ooxml/wordprocessingml/main,targetScreenSz
http://purl.oclc.org/ooxml/wordprocessingml/main,saveSmartTagsAsXml
http://purl.oclc.org/ooxml/wordprocessingml/main,sz
http://purl.oclc.org/ooxml/wordprocessingml/main,framesetSplitbar
http://purl.oclc.org/ooxml/wordprocessingml/main,frameLayout
http://purl.oclc.org/ooxml/wordprocessingml/main,title
http://purl.oclc.org/ooxml/wordprocessingml/main,frame
http://purl.oclc.org/ooxml/wordprocessingml/main,div
http://purl.oclc.org/ooxml/wordprocessingml/main,w
http://purl.oclc.org/ooxml/wordprocessingml/main,color
http://purl.oclc.org/ooxml/wordprocessingml/main,noBorder
http://purl.oclc.org/ooxml/wordprocessingml/main,flatBorders
http://purl.oclc.org/ooxml/wordprocessingml/main,name
http://purl.oclc.org/ooxml/wordprocessingml/main,longDesc
http://purl.oclc.org/ooxml/wordprocessingml/main,sourceFileName
http://purl.oclc.org/ooxml/wordprocessingml/main,marW
http://purl.oclc.org/ooxml/wordprocessingml/main,marH
http://purl.oclc.org/ooxml/wordprocessingml/main,scrollbar
http://purl.oclc.org/ooxml/wordprocessingml/main,noResizeAllowed
http://purl.oclc.org/ooxml/wordprocessingml/main,linkedToFile
http://purl.oclc.org/ooxml/wordprocessingml/main,blockQuote
http://purl.oclc.org/ooxml/wordprocessingml/main,bodyDiv
http://purl.oclc.org/ooxml/wordprocessingml/main,marLeft
http://purl.oclc.org/ooxml/wordprocessingml/main,marRight
http://purl.oclc.org/ooxml/wordprocessingml/main,marTop
http://purl.oclc.org/ooxml/wordprocessingml/main,marBottom
http://purl.oclc.org/ooxml/wordprocessingml/main,divBdr
http://purl.oclc.org/ooxml/wordprocessingml/main,divsChild
http://purl.oclc.org/ooxml/wordprocessingml/main,top
http://purl.oclc.org/ooxml/wordprocessingml/main,left
http://purl.oclc.org/ooxml/wordprocessingml/main,bottom
http://purl.oclc.org/ooxml/wordprocessingml/main,right
Am I a great programmer? Definitely not. I simply relied
Kohsuke Kawaguchi's program (rng2srng), which in turn relies on jing by
James Clark.
http://www.kohsuke.org/relaxng/rng2srng/
Given a RELAX NG schema (which specifies permissible root elements),
rng2srng creates simplified schemas (which do not contain unreachable
elements). I simply wrote a Makefile and short XSLT for extracting
element names.
ButI think that these lists are very useful. But should we publish this
list as part of 29500? I guess not. We might want to publish it on the
the WG4 web page. How do you feel?
21771 DrawingML_Chart.elems
12065 DrawingML_Chart_Drawing.elems
2411 DrawingML_Diagram_Colors.elems
10817 DrawingML_Diagram_Data.elems
12061 DrawingML_Diagram_Layout_Definition.elems
3159 DrawingML_Diagram_Style.elems
6845 DrawingML_Table_Styles.elems
11090 DrawingML_Theme.elems
6838 DrawingML_Theme_Override.elems
220 PresentationML_Comment_Authors.elems
311 PresentationML_Comments.elems
12931 PresentationML_Handout_Master.elems
12987 PresentationML_Notes_Master.elems
12996 PresentationML_Notes_Slide.elems
8733 PresentationML_Presentation.elems
2365 PresentationML_Presentation_Properties.elems
18505 PresentationML_Slide.elems
18561 PresentationML_Slide_Layout.elems
18788 PresentationML_Slide_Master.elems
162 PresentationML_Slide_Synchronization_Data.elems
105 PresentationML_User-Defined_Tags.elems
1223 PresentationML_View_Properties.elems
157 Shared_Additional_Characteristics.elems
4931 Shared_Bibliography.elems
2262 Shared_Custom_File_Properties.elems
191 Shared_Custom_XML_Data_Storage_Properties.elems
4134 Shared_Extended_File_Properties.elems
207 SpreadsheetML_Calculation_Chain.elems
1371 SpreadsheetML_Chartsheet.elems
1937 SpreadsheetML_Comments.elems
850 SpreadsheetML_Connections.elems
215 SpreadsheetML_Custom_XML_Mappings.elems
3307 SpreadsheetML_Dialogsheet.elems
12642 SpreadsheetML_Drawing.elems
1196 SpreadsheetML_External_Workbook_References.elems
1063 SpreadsheetML_Metadata.elems
3234 SpreadsheetML_Pivot_Table.elems
3481 SpreadsheetML_Pivot_Table_Cache_Definition.elems
700 SpreadsheetML_Pivot_Table_Cache_Records.elems
594 SpreadsheetML_Query_Table.elems
1236 SpreadsheetML_Shared_String_Table.elems
435 SpreadsheetML_Shared_Workbook_Revision_Headers.elems
3426 SpreadsheetML_Shared_Workbook_Revision_Log.elems
210 SpreadsheetML_Shared_Workbook_User_Data.elems
332 SpreadsheetML_Single_Cell_Table_Definitions.elems
2900 SpreadsheetML_Styles.elems
1269 SpreadsheetML_Table_Definitions.elems
459 SpreadsheetML_Volatile_Dependencies.elems
1760 SpreadsheetML_Workbook.elems
7272 SpreadsheetML_Worksheet.elems
27451 WordprocessingML_Comments.elems
10519 WordprocessingML_Document_Settings.elems
27451 WordprocessingML_Endnotes.elems
752 WordprocessingML_Font_Table.elems
27389 WordprocessingML_Footer.elems
27453 WordprocessingML_Footnotes.elems
28316 WordprocessingML_Glossary_Document.elems
27389 WordprocessingML_Header.elems
294 WordprocessingML_Mail_Merge_Recipient_Data.elems
27508 WordprocessingML_Main_Document.elems
8140 WordprocessingML_Numbering_Definitions.elems
9515 WordprocessingML_Style_Definitions.elems
2605 WordprocessingML_Web_Settings.elems
Cheers,
Makoto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 2656 bytes
Desc: not available
URL: <http://mailman.vse.cz/pipermail/sc34wg4/attachments/20101105/e551d4ad/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: listElements.xsl
Type: application/octet-stream
Size: 518 bytes
Desc: not available
URL: <http://mailman.vse.cz/pipermail/sc34wg4/attachments/20101105/e551d4ad/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WordprocessingML_Style_Definitions.elems
Type: application/octet-stream
Size: 9514 bytes
Desc: not available
URL: <http://mailman.vse.cz/pipermail/sc34wg4/attachments/20101105/e551d4ad/attachment-0005.obj>
More information about the sc34wg4
mailing list