This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Using XSLT on a Schema
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 18 Jun 2002 12:10:58 +0100
- Subject: Re: [xsl] Using XSLT on a Schema
- References: <83329AAEE258D411849400C00D0039D8A3DC4B@ils>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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