18. A system for exporting at least a portion of a relational database to an XML document, comprising: a memory; and at least one processor, coupled to the memory, operative to: obtain an initial view query that defines an XML view on said relational database and an XSLT stylesheet specifying at least one transformation; modify said initial view query to account for an effect of said at least one transformation specified in said XSLT stylesheet; and apply said modified view query that accounts for said effect of said at least one transformation specified in said XSLT stylesheet to said relational database to obtain said XML document; generate a first graph representing processing done by said XSLT stylesheet; and combine said first graph with a second graph to produce a combined graph, wherein said second graph represents said initial view query by matching pairs of nodes from the first and second graphs and wherein said combined graph is a context transition graph for an XSLT stylesheet executed on said initial view query.
18. A system for exporting at least a portion of a relational database to an XML document, comprising: a memory; and at least one processor, coupled to the memory, operative to: obtain an initial view query that defines an XML view on said relational database and an XSLT stylesheet specifying at least one transformation; modify said initial view query to account for an effect of said at least one transformation specified in said XSLT stylesheet; and apply said modified view query that accounts for said effect of said at least one transformation specified in said XSLT stylesheet to said relational database to obtain said XML document; generate a first graph representing processing done by said XSLT stylesheet; and combine said first graph with a second graph to produce a combined graph, wherein said second graph represents said initial view query by matching pairs of nodes from the first and second graphs and wherein said combined graph is a context transition graph for an XSLT stylesheet executed on said initial view query. 21. The system of claim 18 , wherein said processor is further operative to prune said combined graph to remove unnecessary nodes; and modify said combined graph to produce a modified view query that handles formatting instructions.