![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Can types be marked as "deprecated"? [Thread Next] RE: Can types be marked as "deprecated"?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 | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
