Re: [xsl] Using XSLT on a Schema

Subject: Re: [xsl] Using XSLT on a Schema
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 18 Jun 2002 12:10:58 +0100
This is a FAQ. (and was answered within the last day or so on this list)

<Schema name="xmlSchemaSalesOrder"
xmlns="urn:schemas-microsoft-com:xml-data"

so that is an element with local name Schema and namespace urn:schemas-microsoft-com:xml-data

<xsl:apply-templates select="/Schema"/>

that matches an element with local name Schema and no namespace, so does
not match your element.

use
<xsl:apply-templates select="/x:Schema"/>

and add xmlns:x="urn:schemas-microsoft-com:xml-data"
to your xsl:stylesheet

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread