2

I'm trying this with no luck:

  [@ActiveStatus='Yes']

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

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

Try:-

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

There are some good examples in this MSDN article.

http://msdn.microsoft.com/en-us/library/ms950787.aspx

  • 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 '13 at 13:39
0

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.

http://en.m.wikipedia.org/wiki/Identity_transform

0

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.