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

Can we put our custom xsl files for CBQ in a location other than Style Library (in Layouts directory in 14 hive for instance)?

Trying to do so is giving me the following error : "The web part references an untrusted XSL file. Only XSL files contained in this site's Style Library may be referenced."

Is there any way to overcome this?

By the way I am trying this in SP2010

share|improve this question
Check this… Loks like you have same issue. – Ashish Patel Dec 22 '11 at 14:01

Check this

Loks like you have same issue. The file must belong to your site collection in which cqwp exist.

share|improve this answer
What I really need is to know if there is a way to overcome this limitation. – justforkix09 Dec 23 '11 at 6:51
Can you explain how this limits you? – Dave Wise Dec 23 '11 at 17:59

I don't recommend you to place those custom xsl files (or any other style resources) in the layouts directory. You're losing the advantage of versioning, check-in-check-out, ... .

share|improve this answer

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.