protected internal void validateParent(FObj parent)
        {
            if (parent.GetName().Equals("fo:repeatable-page-master-alternatives"))
            {
                this.repeatablePageMasterAlternatives =
                    (RepeatablePageMasterAlternatives)parent;

                if (GetMasterName() == null)
                {
                    FonetDriver.ActiveDriver.FireFonetWarning(
                        "single-page-master-reference"
                        + "does not have a master-reference and so is being ignored");
                }
                else
                {
                    this.repeatablePageMasterAlternatives.addConditionalPageMasterReference(this);
                }
            }
            else
            {
                throw new FonetException("fo:conditional-page-master-reference must be child "
                                         + "of fo:repeatable-page-master-alternatives, not "
                                         + parent.GetName());
            }
        }
        protected internal void validateParent(FObj parent)
        {
            if (parent.GetName().Equals("fo:repeatable-page-master-alternatives"))
            {
                this.repeatablePageMasterAlternatives =
                    (RepeatablePageMasterAlternatives)parent;

                if (GetMasterName() == null)
                {
                    FonetDriver.ActiveDriver.FireFonetWarning(
                        "single-page-master-reference"
                            + "does not have a master-reference and so is being ignored");
                }
                else
                {
                    this.repeatablePageMasterAlternatives.addConditionalPageMasterReference(this);
                }
            }
            else
            {
                throw new FonetException("fo:conditional-page-master-reference must be child "
                    + "of fo:repeatable-page-master-alternatives, not "
                    + parent.GetName());
            }
        }