SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working on a project in which I've made a new webpart which inherits the CQWP. In the codebehind I send some additional values, which isn't present in the lists (meaning there are no columns containing these values) I'm displaying using this webpart.

Is it then necessary to use the @ symbol in order to fetch these values?

share|improve this question
up vote 3 down vote accepted

The CQWP renders the datatable columns as attributes of the row element so you would use the @ symbol to reference them in your XSLT as opposed to parameters or variables referenced using the $ symbol and elements referenced without any symbol

share|improve this answer

Are you passing additional parameters using the ModifyXsltArgumentList (or similar)? If so, just add the <xsl:param name="YourParamName"/> near the top of the xslt file and you can just get to the parameter names with $YourParamName.

share|improve this answer
I add an additional column to the datatable. – Daniel Ziga Dec 29 '11 at 10:53
Ah, understood. I've worked with code that does this only once before, but I can't quite remember if I needed to use @ or not. I know someone who might know better though... – James Love Dec 29 '11 at 11:19
Is it possible of you to ask this someone? I'd really appreciate it – Daniel Ziga Dec 29 '11 at 12:40
Have done. He might have already blogged about this, so have a rake through his blog - – James Love Dec 29 '11 at 12:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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