This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XML to html
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