[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Cross referencing paths in XSLT to an XML Schema

  • From: "Michael Kay" <mike@s...>
  • To: <john.christopher1100@y...>,<xml-dev@l...>
  • Date: Sat, 27 Sep 2008 00:03:19 +0100

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

> -----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]


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.