[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML to html

Subject: Re: XML to html
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 01 Aug 2002 21:38:20 +0200
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.