[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: namespace problem
You need to match a document that has elements <doc>, <p>, <Char> that are in *no namespace*, where the name has no namespace name, just a locsl name. Your output document is supposed to be in the namespace " http://www.w3.org/1999/xhtml", and you'd like to use the shortened notation known as *default namespace*. In the 2nd version of your XSLT you introduce a default namespace, and, sure enough, the matches written without a prefix aren't in the no namespace ghetto any more. You may, however, at any time cancel the definition for the default namespace by writing xmlns="" and everything below that has no prefix hasn't a namespace name either. You'll have to put this attribute where you need to match the no namespace elements, and you'll have to add the xmlns="http://www.w3.org/1999/xhtml" to elements contained therein, where the output elements are part of the template. HTH Wolfgang On 3 September 2014 16:56, Ruud Grosmann r.grosmann@xxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > On 09/03/14 16:29, Ruud Grosmann r.grosmann@xxxxxx wrote: > > I started with a stylesheet like this, in which I process content twice, >> in the normal way (stylesheet is input document as well): >> > > I separated the input document from the stylesheet, so this not the case > anymore. > > > Ruud
|
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
|