Purpose of <comment/> in view1.xsl

M

Mike Sharp

What's the purpose of the <comment/> tag in View1.xsl? How is it generated,
and is there any way to prevent it from being generated? For example,
examining view1.xsl in one particular InfoPath document, I see:

<xsl:eek:therwise>
<xsl:value-of select="my:product"/>
</xsl:eek:therwise>
</xsl:choose>
</span>
</div>
<comment/>
<font style="FONT-SIZE: 24pt">
<font style="FONT-SIZE: 24pt">
<strong>


Regards,
Mike Sharp
 
B

Brian Teutsch [MSFT]

Did you happen to paste some portion of your document from a web page or
other application? InfoPath probably won't be generating <comment> tags on
its own.

Brian
 
M

Mike Sharp

Hmmm...it's possible. The form was created by someone else in our group,
and while he was only pasting from one InfoPath form to another, it's highly
possible the tag was an artifact from Word (inline comment perhaps) or
something from an earlier incarnation.

That's good to know...I was a bit surprised when I saw it; I figured any
"custom" tag generated by InfoPath that I ran into would be scoped to a
namespace, and this one wasn't!

Thanks!
Mike Sharp
 
B

Brian Teutsch [MSFT]

Actually it is scoped to a namespace. <xsl:comment> is a defined way to
store comment information in an XSL file. InfoPath doesn't make any use of
that ability, but it's possible it was preserved/converted from another
application.

Brian
 
M

Mike Sharp

Right, <xsl:comment> is scoped, but this strange tag was simply <comment/>.
I think you hit it on the head when you suggested it got there from a
copy-and-paste operation. I heard that it happened to them again, but now
they knew to look for the tag. I think it might be comming from the
discussion server...

Thanks for your help!

Regards,
Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top