xsl-list
[Top] [All Lists]

Re: [xsl] A problem with concat()

2011-04-18 14:33:19
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(_at_)gmail(_dot_)com> 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(_dot_)ibach(_at_)single-sourcing(_dot_)com> wrote:
I notice you have a test of "not(@attribute)" in your code.  Should
this be "not(@authority)", instead?

-Brandon :)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>