Subject: Re: [xsl] A problem with concat() From: Brandon Ibach <brandon.ibach@xxxxxxxxxxxxxxxxxxx> Date: Mon, 18 Apr 2011 15:33:09 -0400 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] A problem with concat(), Bridger Dyson-Smith | Thread | Re: [xsl] A problem with concat(), Bridger Dyson-Smith |
Re: [xsl] A problem with concat(), Bridger Dyson-Smith | Date | Re: [xsl] A problem with concat(), Bridger Dyson-Smith |
Month |