RE: [xsl] a namespace problem

Subject: RE: [xsl] a namespace problem
From: "Dion Houston" <dionh@xxxxxxxxxxxxx>
Date: Wed, 3 Apr 2002 08:59:58 -0800
Hmmm, well I'd encourage you to find a way to do it with a namespace
prefix of some sort, just because:

<xsl:template match="*[local-name()='Foo']">

Will probably compare every single element against the expression.  If
you have large instance documents this could get pretty slow.

Best of luck!

Dion


-----Original Message-----
From: Bryan Rasmussen [mailto:bry@xxxxxxxxxx] 
Sent: Wednesday, April 03, 2002 8:36 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] a namespace problem


>The short of it: XPath does not consider namespace prefixes, but rather
>URIs when comparing elements...
>In XPath match expressions without a prefix are considered to be a NULL
>(not default) namespace.  So for both of the above two documents:
jeez I forgot about that, I read it once long ago and figured it was
never
gonna become important in my life :) now it is :(

>To get what you expect, simply choose an
>arbitrary namespace prefix for your default namespace, and use that in
>expressions...

would be counter-productive to go through the trouble of doing that as
I'm
gonna be downloading the rss periodically.

Darn I just know it's gonna turn out having to be something with
matching
against the local-name().


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread