Act Governing the Choice of Law in Civil Matters Involving Foreign Elements Article 51

A child is a legitimate child if he/she was a legitimate child at the time of birth under the national law of the child, of his/her mother, or of the husband of his/her mother. However, where the marriage relationship between the parents has ended before a child was born, the child is a legitimate child if he/she was a legitimate child under his/her national law when born or under the national law of his/her mother or of the husband of his/her mother at the time the marriage relationship ended.
中文原文 涉外民事法律適用法第51條
子女之身分,依出生時該子女、其母或其母之夫之本國法為婚生子女者,為婚生子女。
但婚姻關係於子女出生前已消滅者,依出生時該子女之本國法、婚姻關係消滅時其母或其母之夫之本國法為婚生子女者,為婚生子女。

English translation for reference only; the Chinese text prevails. Not legal advice.