This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: namespace issue?
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 14 Nov 2001 21:07:42 -0000
- Subject: RE: [xsl] namespace issue?
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I have a document with a first (mother-of-all-elements :-) in the
> following format:
>
> <DDDefinition xmlns="http://www.myside.site/ccc/ddd"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.myside.site/ccc/ddd mySchema.xsd">
> I have an xslt which is processing this document and fails.
>
> <xsl:template match="DDDefinition">
You are looking for DDDefinition in the null namespace, this will not find
DDDefinition in the ..myside.site.. namespace: by definition, the names in
one namespace are quite unconnected with the names in another. You need to
write match="xx:DDDefinition" and set xmlns:xx="..myside.site..".
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list