'Collect the formatting for the page layout style.'

def s_style_master_page(self, tag, attrs):

    name = attrs[(STYLENS, 'name')]
    name = name.replace('.', '_')
    self.currentstyle = ('.MP-' + name)
    self.stylestack.append(self.currentstyle)
    self.styledict[self.currentstyle] = {('', 'position'): 'relative'}
    pagelayout = attrs.get((STYLENS, 'page-layout-name'), None)
    if pagelayout:
        pagelayout = ('.PL-' + pagelayout)
        if (pagelayout in self.styledict):
            styles = self.styledict[pagelayout]
            for (style, val) in list(styles.items()):
                self.styledict[self.currentstyle][style] = val
        else:
            self.styledict[self.currentstyle]['__parent-style-name'] = pagelayout
    self.s_ignorexml(tag, attrs)
