Re: [xsl] Want to use XSLT to sort an XML Schema

Subject: Re: [xsl] Want to use XSLT to sort an XML Schema
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Fri, 15 Feb 2008 16:58:38 +0100 (CET)
Glen Mazza wrote:

> <xsl:template match="import">

  You are matching elements whose the name is 'import' in no namespace.
 If your XSDL schemas are correct, this won't match anything, since
elements in XSDL are in the XSDL namespace.  So bind this namespace,
for instance on the xsl:stylesheet element, for instance with the
following (check the URI):

    xmlns:xs="http://www.w3.org/2001/XMLSchema";

and change the above template declaration into:

    <xsl:template match="xs:import">

(as well as in the @select attributes).

  Regards,

--drkm

























      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr

Current Thread