A Theoretical Model of X-Ray Jets from Young Stellar Objects