Re: Where is apply-imports going wrong?
Hi Ankit, > I have two files Northwind.xml and its stylsheet NorthwindPO3.xsl. > From the above specified XML file I create a new file temp.xml that > contains new elements "Annotation" that have certain attributes, for > example "type". Now I generate a stylesheet(temp.xsl) that imports > the stylesheet NorthwindPO3.xsl and apply this stylesheet to > temp.xml Now, my aim is to display the temp.xml with formattings > from NorthwindPO3.xsl + new formattings for all elements > "ANNOTATION". Means, I wish to override the formattings of > NorthwindPO3.xsl with new formattings as specified in temp.xsl file > > But to my surprise, all the values disappear when i open the > temp.xml file using temp.xsl. Could somebody please tell where i am > going wrong in the creation of temp.xsl I think that one problem is that NorthwindP03.xsl is written in WD-xsl rather than XSLT. If you change the namespace to http://www.w3.org/1999/XSL/Transform then you should have better luck. >From a quick scan, though, it doesn't look as though NorthwindP03.xsl ever applies templates to any nodes, so I doubt that the templates in temp.xsl will have any effect. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ 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