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

Re: xpath query failing

Subject: Re: xpath query failing
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 22 Apr 2016 22:35:23 -0000
Re:  xpath query failing
All your elements are in a namespace, so all the names need to be subjected to
the same treatment:


You example missed the "@" from "@writeTo".

Michael Kay

> On 22 Apr 2016, at 22:21, Joseph L. Casale jcasale@xxxxxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>> 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.
> Hi Michael,
> That worked, much appreciated. I assumed I could leverage that for the
> as well such as selecting "/nlog/targets/target[@name='file']/@fileName" or
> "/nlog/rules/logger[writeTo='file']/@minlevel" however those did not work
> either the above workaround or a relative expression such as
> <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
>      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>      throwExceptions="true">
>  <targets>
>    <target xsi:type="EventLog"
>            name="eventLog"
>            source="..."
>            layout="..." />
>    <target xsi:type="File"
>            name="file"
>            layout="..."
>            fileName="..."
>            archiveFileName="...{#}.log"
>            archiveEvery="Day"
>            archiveNumbering="Rolling"
>            maxArchiveFiles="31"
>            keepFileOpen="true" />
>  </targets>
>  <rules>
>    <logger name="*" minlevel="Error" writeTo="eventLog" />
>    <logger name="*" minlevel="Trace" writeTo="file" />
>  </rules>
> </nlog>
> By chance any other tricks up your sleeve?
> Thanks!
> jlc

Current Thread


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.
First Name
Last Name
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.