Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: XSL boolean test question
04-19-2012, 11:35 AM #1
- Join Date
- Apr 2012
- Thanked 0 Times in 0 Posts
XSL boolean test question
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> </xsl:if>