An approximated variational principle for the transonic flow on an arbitrary stream sheet of revolution is applied.A special numerical treatment given to the theory of variational principle with variational domain is presented.The discontinuous finite element is used and its advantages are demonstrated in numerical discretization. A combined version of artifitial compressibility method and variation within vatiational domain is proposed.The numerical results show that this new shock-capturing scheme is quite reliable.