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 am showing the results of query against a document library within a dataformwebpart. The managed meta data field is named 'Tags'. The output to the page of this column looks like 3;#test;#2;tos (where test and tos were text values of 2 properties).

How using xsl can i show test, tos.

The xsl currently outputs .

I would expect this is the problem when outputting any of the managed metadata properties. I have tried select="@Tags." as well with the same result.

share|improve this question

You might try something like this:

select = "concat(substring-before(substring-after({@Tags},'#'),';'),substring-after(substring-after(substring-after({@Tags},'#'),'#'),';'))"

This is just off the top of my head, but it should be pretty close. Of course, this would only work if there are always two metadata properties returned by @Tags.

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.