The eminent canon lawyer, Ed Peters, has some interesting second thoughts on the Chinese communists ordaining a couple of bishops. He refers his readers to what he terms the "most theologically significant decision reached by CDF" under then-Cardinal Ratzinger which was the declaration that Mormon baptism is invalid.
I had first-hand experience with this. I spent a year as the Director of Education and Formation at the Cathedral of the Madeleine in Salt Lake City, about three blocks east of Temple Square. One of my duties was to be an advocate for those who petitioned the Diocese of Salt Lake City for a declaration of nullity in regard to their marriage. This meant I had to have some quick tutoring in canon law, and was ably assisted in that by Father Robert Moriarty of the diocesan tribunal. One of the things we discussed was the validity of Mormon baptism. That this was even a question was a surprise to me, but he explained that when it came to form and matter, they had everything correct. They baptize with water and use the same formula we do.
But -- and this is a big 'but' -- do they intend to do the same thing that we do? When a nurse or someone else baptizes another in an emergency situation, that baptism is valid because the form and the matter are the same as the Church's and because we know that, even if she can't articulate it to any great extent, the nurse intends to do what the Church intends in baptism -- cleanse the person of sin and bring him into the life of the Trinity.
Mormons, on the other hand, do not believe in the Trinity. Their doctrine is so totally mixed up on the nature of Jesus Christ that you can't tell from one moment to the next if you're talking about Arianism, adoptionism, Manicheeism, or any other type of heretical "ism" there is. What we do know, though, is that they do not believe that Jesus Christ is fully God and fully man, "one in being (homoousion) with the Father." We do know that their understanding of the Father is that he is god of this planet, not the God and creator of the universe. Their understanding of the Holy Spirit is so totally lost that one hardly knows where to even begin to look to find it. In a nutshell, we know that they are pagans -- polytheists, even.
So when a Mormon says, "I baptize you in the name of the Father and of the Son and of the Holy Spirit," he is saying, "I baptize you in the name of three different gods." And it is that intention that the Congregation for the Doctrine of the Faith said was totally incompatible with Catholic teaching, and therefore it makes their baptism invalid.
So when the Chinese Communists ordain bishops solely for the purpose of thumbing their noses at the Holy See, the intent of what they're doing should be very carefully considered when it comes to evaluating the validity, never mind the liceity, of their actions.