Subject: [xsl] Re: Namespace questions From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Fri, 29 Dec 2000 22:51:56 -0800 (PST) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Namespace questions, Ayelet Kotzer | Thread | [xsl] Re: Namespace questions, Dimitre Novatchev |
Re: [xsl] Namespace questions, Ayelet Kotzer | Date | [xsl] Re: Namespace questions, Dimitre Novatchev |
Month |