[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] xpath query failing

Subject: Re: [xsl] xpath query failing
From: "Eliot Kimber ekimber@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 22 Apr 2016 20:58:17 -0000

It seemed like a good idea at the time ....


Eliot Kimber, Owner
Contrext, LLC

On 4/22/16, 3:29 PM, "Michael Kay mike@xxxxxxxxxxxx"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

>> On 22 Apr 2016, at 20:52, Joseph L. Casale jcasale@xxxxxxxxxxxxxxxxx
>><xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>>> I'm afraid this is the number 1 xpath gotcha. Your nlog element is in
>>>a namespace and you are searching for nlog elements in no namespace.
>>> The framework in which you are executing the XPath expression should
>>>give you some means of binding a prefix to the namespace, for example
>>> setNamespaceBinding("n",
>>> You can then use the path expression "/n:nlog/@throwExceptions"
>> Hi Michael,
>> Looks like I am out of luck, according to
>> the WIX toolset neglects to implement this functionality.
>Well, there's always the ghastly workaround
>>> "/*[local-name() = 'nlog']/@throwExceptions"
>Over on xml-dev there are people actually defending the design of XML
>namespaces. Amazing.
>Michael Kay

Current Thread