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

Re: A problem with concat()

Subject: Re: A problem with concat()
From: Brandon Ibach <brandon.ibach@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 Apr 2011 15:33:09 -0400
Re:  A problem with concat()
Ah!  I see what you were after.  Your test looks for an attribute that
is actually named "attribute" (e.g., <mods:name attribute="...">).
Try "not(@*)", instead.

-Brandon :)


On Mon, Apr 18, 2011 at 3:23 PM, Bridger Dyson-Smith
<bdysonsmith@xxxxxxxxx> wrote:
> Hi Brandon,
> thanks for the reply. I'm trying to process several hundred files in
> one fell swoop. :)
>
> Some of the elements look like this:
> <mods:name type="personal" authority="LCNAF">
> some are like this:
> <mods:name type="personal">
> and some fit this bill:
> <mods:name>
>
> D:
>
> So I hoped that testing for "not(@attribute)" would help me parse the
> element and get me by those occasions where I don't have an attribute
> there at all. Is there a better way to handle this case? <- I'm sure
> there is, but I don't know it.
>
> Cheers,
> Bridger
>
>
> On Mon, Apr 18, 2011 at 3:18 PM, Brandon Ibach
> <brandon.ibach@xxxxxxxxxxxxxxxxxxx> wrote:
>> I notice you have a test of "not(@attribute)" in your code.  Should
>> this be "not(@authority)", instead?
>>
>> -Brandon :)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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