Re: [xsl] XML to html

Subject: Re: [xsl] XML to html
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 01 Aug 2002 21:38:20 +0200
Mridula Mahadevan wrote:
But i put in the default org namespace into the xml file, i dont
> get any data into the html.

This is a FAQ.
You probably have something like
  <foo xmlns="my:org.namespace">...
in you XML and
  <xsl:template match="foo">
in your XSLT. In your XML, the "foo" element is in
the namespace. In the XSLT, the "foo" in the match
attribute is in *no* namespace, even if you declare
your namespace somewhere in the XSLT file. You have
to declare a prefix and use it explicitely:

<xsl:stylesheet version=...
  xmlns:xsl=...
  xmlns:org="my:org.namespace">

  <xsl:template match="org:foo">
  ...


J.Pietschmann






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


Current Thread