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

Re: elements in a namespace

Subject: Re: elements in a namespace
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 7 Jun 1999 18:44:06 +0100 (BST)
namespace any
Mike Brown writes

> The default namespace, as declared by the xmlns attribute, is just for the
> assignment of a namespace to result tree elements that aren't expressed in
> the stylesheet with qualifiers (prefixes).

Not necessarily result tree elements, If you get fed up of sticking xsl:
in front of everything, you can do this:

<stylesheet 
  xmlns="http://www.w3.org/XSL/Transform/1.0"
  >

and then just use

<template match=

etc.

Of course you then need to explicitly namespace any literal result
elements, or don't use literals, and use <element name="foo"> instead.


> The gist is: namespace declarations in the stylesheet have nothing to do
> with elements in the source tree.

Not really `nothing'. If you want to access elements in the source tree
which have a particular namespace associated, you have to declare that
namespace in the stylesheet, to associate the namespace with a prefix.
Don't you?

David


 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.