[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Namespace questions
Ayelet, You'll have to use the DOM and find all namespaces used in the source xml document. Then add them dynamically to your xsl stylesheet. Do not allow the source xml doc namespaces to overwride the ones the stylesheet uses, though. Then invoke the transformation. Then, if you're going to process another xml source document with the same stylesheet, remove the namespaces you added to the stylesheet. This is how the XPath Visualiser performs. Cheers, Dimitre Novatchev. Ayelet Kotzer wrote: Thanks. But - I don't know what is B. I am getting it from my XML source file. Happy new year Ayelet Goetz Bock wrote: > On Fri, Dec 29 '00 at 13:41, Ayelet Kotzer wrote: > > 2. I have to output this line : > > <m:A xmlns:m="B"> > You must declare the m namespace at the beginning of your xsl-t > > <xsl:stylesheet xmlns:m="B"> > . > . > . > <m:A> > ... > </m:A> > . > . > . > </xsl:stylesheet> > > and your XSL-T processor will add the xmlns attribute, if requitred. > > I don't know how to solve your first question (may be because it's late > ...) > > Cu, > Goetz. > __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.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
|