[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to match on namespace prefix
Chris Lilley wrote: > > Francois Belanger wrote: > > > > James Clark wrote on 04/01/99 19h16: > > > >Issue (pattern-namespace-wildcards): Should patterns of the form foo:* > > >or *:foo be allowed? > > > > Yes, it's really needed, so is @*:foo or @foo:* for attributes, the > > syntax is simple and intuitive. > > No, it should not be allowed. ... > The key point here is that equality is beased on the declared namespace > *name*, not the namespace *prefix* which happend to be used in a > particular instance. That is exactly how foo:* would work. A template <xml:template match="foo:*" xmlns:foo="http://www.foo.com/">...</> would match any name whose namespace was http://www.foo.com/ irrespective of the prefix. This parallels what XSL already does with prefixed names. A template <xml:template match="foo:bar" xmlns:foo="http://www.foo.com/">...</> matches an element <f:bar xmlns:f="http://www.foo.com/"/> or <bar xmlns="http://www.foo.com/"/> Since XSL is in XML syntax, we don't have to invent a new mechanism for specifying expanded names; we can use the standard XML one. James 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
|