[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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 :)
|
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
|