This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using XSLT on a Schema


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]