近年來,以模型轉換為導向的程式設計觀點引起了相當大的注意,許多的研究人員試圖提出許多方法來達成以模型為觀點的程式設計方法,其中最關鍵的在於如何透過模型轉換的方式將軟體模型細化。然而,在這些方法上缺乏對於非功能性需求的轉換探討,尤其是如何結合目標以及設計樣式來達成非功能性需求的轉換因而增進軟體品質的研究更是缺乏。為了進一步探討目標、設計樣式、XML、軟體模型轉換之間的關係,本研究提出一個以目標為導向、以樣式為基礎的軟體模型轉換方法,以漸進式的方式,來分析及建構軟體分析模型,並且進一步的轉換成為設計模型以處理使用者需求中的非功能性需求。透過目標的使用,功能性需求以及非功能性需求能夠較容易的透過轉換反應在軟體模型上;我們根據設計樣式的分析,將設計樣式的意圖分為功能性意圖以及非功能性意圖,並藉由引進設計樣式的轉換方法,可以進一步的軟體分析模型轉換成為設計模型。同時,由於模糊理論適合用來獲得與分析在本質上不精確的非正規需求,同時,XML是一種在網際網路資料處理上新興的並且具有優勢的資料格式,因此,我們發展了一個以XML為基礎的FOOM schema來建立其需求規格並且含括型別的概念來促進不精確需求的規劃。我們也提出一個方法,用來轉換這個FOOM schema成為一組會自動作確認內容合法化與資料存取的APIs。除此之外,我們也提出一種綱目圖,這是FOOM schema結構的內部表現形態,並且作為FOOM schema與用來確認XML文件內容合法化與存取XML文件資料APIs的橋樑。最後,我們實作了一個工具來證明我們所提出的方法。本研究包含以下的特點: (1) 利用目標結構的方式來幫助找出各種不同的使用者目標; (2) 透過目標建立使用者案例; (3) 透過目標間的互動關係建立穩定核心; (4) 透過穩定核心及目標皆曾以漸進式的方式建構軟體分析模型; (5) 利用設計樣式轉換的方法將軟體分析模型轉換成為設計模型,此轉換可以處理使用者需求中的非功能性需求,以增進軟體的品質; (6) 利用綱目圖自動產生確認XML文件內容合法化與存取XML文件資料的APIs; (7) 透過規則的方式,將設計模型轉換為程式碼樣板。 Recently, the growing popularity of model driven frameworks and methodologies, as well as the Model Driven Architecture (MDA) initiated by Object Management Group (OMG) has implied an increasing focus on model transformation. Meanwhile, the impact of design patterns on software quality has attracted a gradual attention since design patterns encapsulate valuable knowledge to resolve design problems and improve design quality. As an attempt towards the investigation of applying goals, design patterns, and XML technology to realize the model transformation, we proposed, in this dissertation, a goal-driven model transformation by applying design patterns to transform an analysis model into its corresponding design model with an emphasis on the non-functional requirements and thus construct the corresponding code templates through a set of transformation rules. The use of goals makes it easier to transform the functional and non-functional requirements into the software models, and derives the candidate design patterns to help satisfy non-functional requirements for resolving the design problems and improving software quality. Furthermore, we developed a fuzzy object oriented modeling (FOOM) schema based on XML to specify requirements specifications and incorporated the notion of stereotype to facilitate the modeling of imprecise requirements. FOOM schema is also transformed into a set of application programming interface(APIs) in an automatic manner. A schema graph is proposed to serve as an intermediate representation for the structure of FOOM schema to bridge the FOOM schema and APIs for content validation and data access. We also developed the transformation rule schema based on the XML schema to specify the transformation rules from FOOM into its corresponding code templates and constructed the code generator in a semi-automatic manner by using the generated APIs.