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

Re: Where is apply-imports going wrong?

Subject: Re: Where is apply-imports going wrong?
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 19 Mar 2003 12:58:20 +0000
temp xml
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


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.