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

Re: Namespace questions

Subject: Re: Namespace questions
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 29 Dec 2000 22:51:56 -0800 (PST)
kotzer yahoo.com 2006
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

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.