I'm trying this with no luck:


also tried 1, '1', 'True' .. get no rows back.. If I remove the filter I get back all rows.

full line in code view looks like this:

<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row [@ActiveStatus='Yes']"/>

3 Answers 3


Your nearly there its just the syntax of the parameter filter.


<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[ActiveStatus='Yes']"/>

There are some good examples in this MSDN article.


  • Tried that- did not work. Keep in mind my code was generated by the Dataview XSLT filter editor in SharePoint Designer 2007. Thanks.
    – Hell.Bent
    May 14, 2013 at 13:39

Have you validated the field is being pulled into your view by dropping it in an xsl:value-of select="@fieldname"

You could also use identity transform as your xsl to validate the variable is coming through and the value.



Maybe someone will find this useful. In my case (MOSS 2007, DVWP), the following solution helped me:

<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[@Published=1]" />

@Published is Yes/No field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.