Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    406
    Thanks
    0
    Thanked 0 Times in 0 Posts

    what does this tag mean?

    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.
    Last edited by chelvis; 04-08-2003 at 02:24 PM.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It doesn't stand for anything - <xsl:text> simply dumps literal text into the output document - a space followed by a quotation mark.
    Last edited by brothercake; 04-10-2003 at 12:16 AM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #3
    New to the CF scene
    Join Date
    Apr 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Posts
    406
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •