...

what does this tag mean?

chelvis
04-07-2003, 09:13 PM
I am not understanding what does this mean? I saw in a code

<xsl:text>&#xD &#xA"</xsl:text>


What does '&#xD' and "&#xA" stand for/ used in XSL?

After the '&#xD there is a semicolon and same with the other tag. But if I put the semicolon the whole tag is not displaying. So I removed the semicolon.

brothercake
04-10-2003, 12:13 AM
It doesn't stand for anything - <xsl:text> simply dumps literal text into the output document - a space followed by a quotation mark.

Mr KFB
04-10-2003, 04:14 PM
Got the following from the MSDN Library in a discussion about how white space is handled in XML files.

Character Entity representation
Space &# 32; hexadecimal rep is &# x20;
Carriage return &# 13; hexadecimal rep is &# xD;
Tab &# 9; hexadecimal rep is &# x9;
Line feed (newline) &# 10; hexadecimal rep is &# xA;

(spaces only added after # to make the text display... before nothing would display when I previewed)

So while I've never used this code in the little XML I've written, it seems to me that they are Carriage Return and Line feed. And don't remove the semicolon. If you do that its just text.

As for the space question mark comment, I don't really follow that. I use <xsl:text> in an xslt transformation and I don't get any question marks, nor would I want them. Not that I'd want a line feed but who knows what xsl chelvis took his snippet from.

I'm a XML newbie though so if I've said anything stupid don't be too hard on me.

chelvis
04-11-2003, 02:15 PM
Thanks MRKFB, I have been writing xsl. But I never saw this before. May be I only have been using the normal way and not the hex rep. Anyway this is useful and thanks :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum