internal override RdpNameClass Compile(RelaxngGrammar g) { if (except != null) { RdpNameClass exc = except.Compile(g); if (FindInvalidType(exc, false)) { throw new RelaxngException(except, "nsName except cannot have anyName nor nsName children."); } return(new RdpNsNameExcept(ns, exc)); } else { return(new RdpNsName(ns)); } }
internal override RdpNameClass Compile(RelaxngGrammar g) { if (except != null) { RdpNameClass exc = except.Compile(g); if (FindInvalidType(exc, true)) { throw new RelaxngException(except, "anyName except cannot have anyName children."); } return(new RdpAnyNameExcept(exc)); } else { return(RdpAnyName.Instance); } }