If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1

Thread: XSL Weirdness

  1. #1
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    San Francisco, CA
    Member #
    2 times
    So, in my experiments with XSL I've noticed it outputs the most horrid HTML I've ever seen in my life.

    Is there some magical solution to this? Some magical - don't close my tags without asking, but close some tags for gods sake kind of option in the <xslutput> tag?

    For example, if I have something like:

    <xsl:attribute name="href">
    <xsl:value-of select="link" />

    Now, when output is set to HTML I get this:

    <a href="mylink.cfm"></a>

    But when set to XHTML I get this:

    <a href="mylink.cfm" />

    Which, in all intensive purposes is right, except that it causes IE to have a seizure.

    The second issue is when I have output set to HTML and I have this in my XSL:

    <img src="myimg.jpg" />

    it outputs: <img src="myimg.jpg">[next tag, on same line, no space]

    Which causes IE to not render the page completely sometimes.

    Is there soemthing I'm missing? Some hints and tips maybe to outputing nice HTML from XSL? It seems like it should be easy... but it's not =/
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 09:38 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: