Architecture of an XPS Document

By Michael Flanakin @ 12:54 PM :: 1708 Views :: 0 Comments :: .NET 3.0, Other :: Digg it!

Content Types

Not knowing where to go after looking at the high level structure, I started at the root by looking at the [Content_Types].xml file. Content types used within an XPS document will clearly depend upon the content you have. For the purposes of this discussion, I will only cover the typical content types.

Ext Mime Type / XML Namespace
fdoc

application/vnd.ms-package.xps-fixeddocument+xml
http://schemas.microsoft.com/xps/2005/06

fdseq application/vnd.ms-package.xps-fixeddocumentsequence+xml
http://schemas.microsoft.com/xps/2005/06/fixedrepresentation
fpage application/vnd.ms-package.xps-fixedpage+xml
http://schemas.microsoft.com/xps/2005/06
jpg image/jpeg
odttf application/vnd.ms-package.obfuscated-opentype
rels

application/vnd.openxmlformats-package.relationships+xml
http://schemas.openxmlformats.org/package/2006/relationships

xml application/vnd.ms-printing.printticket+xml
http://schemas.microsoft.com/windows/2003/08/printing/printschemaframework
http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema
http://schemas.microsoft.com/windows/2006/06/printing/printschemakeywords/microsoftxpsdocumentwriter
http://schemas.microsoft.com/windows/2003/08/printing/printschemakeywords

As you can see, most of the content types are XML, which speaks to the openness of the specification. The only types not XML-based are the images and font (.odttf) files. Speaking of the font files, I'm not wholely sure what format they're in; they're not any of the typical font formats. Of course, since the mime type notes the file is obfuscated, that tells me it wouldn't be the same, anyway. If I had to guess, I'd say the file only contains information on the characters used in the document they're related to. This would save on space.

Ratings

Comments

Currently, there are no comments. Be the first to post one!
Click here to post a comment



Categories Categories