If the source XML file gives an element's qualifier a value, like in <dim:field mdschema="dc" element="contributor" qualifier="editor" lang="">Hue, Pucko</dim:field>, I would like the output XML file to set the type to "bok" (see code below).

For some reason the test is never passed. I never get any output from this part of the code even if the above line is in the source file.

If the element has another qualifier with a value I would like another output.

I would appreciate any help on this, thanks.

<xsl:if test="dspace:field[@element='contributor' and @qualifier='editor']">
        <genre type="publicationType">bok</genre>