[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to match on namespace prefix
You can't yet. 2.6.1 has: Issue (pattern-namespace-wildcards): Should patterns of the form foo:* or *:foo be allowed? If so, should * match any element or any element without a namespace URI? Francois Belanger wrote: > > I could not find how to match nodes (elements or attributes) which are > part of a particular namespace in the draft. > > For example, I'm trying to ignore all nodes from the input tree that are > from the 'nsp' namespace using: > > <xsl:template match="*[namespace() = 'nsp']"> > </xsl:template> > > or in a XQL-like format: > > <xsl:template match="nsp:*"> > </xsl:template> > > XT returns "unexpected token" on both. > > Francois Belanger > Sitepak, Bringing Internet Business into Focus > http://www.sitepak.com > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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
|