Results 1 to 10 of 10

Thread: Xsl

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2002
    Posts
    49

    Xsl

    How i can insert image in xsl file?

    thanks!

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Not sure just what you mean.... do want the img to be a part of the XSL, or is the SRC to be pulled from the transformed XML?
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Also, what type of format are using xsl to transform an xml document into. Another XML, SVG, HTML?

    ???????????????????
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4

    Thread Starter
    Member
    Join Date
    Jun 2002
    Posts
    49
    thank you!
    i find this yet.
    difference from html in xsl is need close tag <img src="1.gif"></img>

  5. #5
    Fanatic Member riis's Avatar
    Join Date
    Nov 2001
    Posts
    551
    Or, you can immediately close the tag, since it doesn't need to contain any child elements.
    For example: <img src="1.gif" />
    It's the same way as in XHTML

    Note, I have added an extra space before the forward slash, since if you want to use the results (after being parsed op the server) within a non-XML browser, like NS4, it will recognize the tag. I don't think there will be any problem with tags with attributes, but tags aren't recognized when there are no attributes. (Like <br/>)

  6. #6

    Thread Starter
    Member
    Join Date
    Jun 2002
    Posts
    49
    Thank you very math!!

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Note that's a XHTML question though, not XSL.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  8. #8
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    xsl is used to turn xml into xhtml, so yes, it is an xsl question in a sense.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  9. #9
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    XSL is used to transform one XML document to another. That other might be (and usually is) XHTML, but that's not a necessity. You could as well transform to SVG or any other XML-based language. img is an XHTML tag, not an XSL tag.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  10. #10
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    I know that, hence why my first reply was asking what formt he was looking for.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

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



Click Here to Expand Forum to Full Width