RE: Cross referencing paths in XSLT to an XML Schema
This is precisely why schema-awareness was added to the language in XSLT 2.0. If you write your stylesheets to take advantage of schema awareness, then in many cases you can get compile-time error or warning messages if your code contains paths that are inconsistent with the input schema, or if it constructs output that is inconsistent with the output schema. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: John Christopher [mailto:john.christopher1100@y...] > Sent: 26 September 2008 22:23 > To: xml-dev@l... > Subject: Cross referencing paths in XSLT to an XML Schema > > Hi everyone - > > I created an XML Schema to validate some XML data, and then > created several XSLT stylesheets to transform the data. > > Unknown to me, someone made some changes to the schema and > the data, and now the stylesheets I created don't work. > The stylesheets contain templates that match paths that no > longer exist because the schema and the data changed. > > Q: Is there some way to validate, cross-reference, or somehow > produce a list of all the valid paths possible in an XML > document described by a schema so that I can determine if a > path in a template is no longer valid (something similar to > when a Java or C compiler gives you a "trying to reference an > undeclared variable" error)? > > Thanks for your help. > > > > > > > ______________________________________________________________ > _________ > > XML-DEV is a publicly archived, unmoderated list hosted by > OASIS to support XML implementation and development. To > minimize spam in the archives, you must subscribe before posting. > > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ > Or unsubscribe: xml-dev-unsubscribe@l... > subscribe: xml-dev-subscribe@l... List archive: > http://lists.xml.org/archives/xml-dev/ > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format