User Profile

Collapse

Profile Sidebar

Collapse
JoeS
JoeS
Last Activity: Jul 26 '07, 11:54 AM
Joined: Jul 23 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JoeS
    replied to XSLT - Turns <br/> into <br> ?
    in XML
    That didn't work, but "omit-xml-declaration="ye s"" did :) Thanks ever so much for your help!
    See more | Go to post

    Leave a comment:


  • JoeS
    replied to XSLT - Turns <br/> into <br> ?
    in XML
    yes this part shouldn't be output in the xhtml should it? i thought you only need this at the top of xml documents not xhtml webpages?
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    See more | Go to post

    Leave a comment:


  • JoeS
    replied to XSLT - Turns <br/> into <br> ?
    in XML
    Perfect - I changed it to 'xhtml' and it now outputs self-closing tags. Thanks you :)

    One slight problem that's occuring now though - in the XSL there are these lines:

    Code:
    <!-- start the stylesheet -->
    <xsl:template match="/">
    	<xsl:apply-templates select="XML"/>
    </xsl:template>
    
    <!-- xml tempate -->
    <xsl:template match="XML">
    ...
    See more | Go to post

    Leave a comment:


  • JoeS
    started a topic XSLT - Turns <br/> into <br> ?
    in XML

    XSLT - Turns <br/> into <br> ?

    I'm new to XSLT, it what our old website developer used but he has now left our company. I have been given the task of making our site output as valid XHTML as I can get it. Currently in the .XSL files I write self-closing tags like <br/> but in the output XHTML they come out as <br> and therefore the page doesn't validate. This happens for other self-closing tags like <img src=""/> too.

    I don't really...
    See more | Go to post
No activity results to display
Show More
Working...