[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] Cross referencing paths in XSLT to an XML Schema
- From: "Michael Kay" <mike@saxonica.com>
- To: <john.christopher1100@yahoo.com>,<xml-dev@lists.xml.org>
- Date: Sat, 27 Sep 2008 00:03:19 +0100
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@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]