Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xml-dev] Cross referencing paths in XSLT to an XML Schema

From: "Michael Kay" <mike@--------.--->
To: <john.christopher1100@-----.--->,<xml-dev@-----.---.--->
Date: 9/26/2008 11:01:00 PM
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: [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@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
>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent