OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] 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

> -----Original Message-----
> From: John Christopher [mailto:john.christopher1100@yahoo.com] 
> Sent: 26 September 2008 22:23
> To: xml-dev@lists.xml.org
> Subject: [xml-dev] 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@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org 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]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS