Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Can types be marked as "deprecated"?

From: "Michael Kay" <mike@--------.--->
To: "'Tino Breddin'" <s9600916@---.----------.-->, <xmlschema-dev@--.--->
Date: 4/21/2006 3:42:00 PM
You could do the validation under the control of a schema-aware XSLT 2.0
transformation, which after validating its input file, puts it through a
dummy transformation:

<xsl:template match="node()|@*">
  <xsl:apply-templates select="node()|@*"/>
</xsl:template>

<xsl:template match="element(*, deprecated-type-1)|attribute(*,
deprecated-type-1)">
  <xsl:message>Warning: deprecated type used</xsl:message>
  <xsl:next-match/>
</xsl:template>

You could also generate this stylesheet based on appinfo entries in the
schema itself.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Tino Breddin
> Sent: 21 April 2006 11:29
> To: xmlschema-dev@w...
> Subject: Can types be marked as "deprecated"?
> 
> 
> Hi,
> i am looking for a possibility to mark special types, which i 
> want to delete later, as deprecated, so that the user, who 
> validates his xml file against the schema gets a warning like 
> "Warning: Type ... is DEPRECATED, use ... instead".
> I did not find any information, that XSD provides such a 
> feature. Does anyone know a workaround how to achieve this?
> 
> Thanks in advance,
> Tino
> 
> 
> 


From jack.k.matheson@i... Fri Apr 21 15:03:57 2006
Received: from maggi


transparent
Print
Mail
Digg
delicious
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