[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|