Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: ADNSF is modifying my code......

  1. #1
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default ADNSF is modifying my code......

    Greetings All,


    I'm trying my level best to produce W3C Vaild code.
    I realise I'm unlikely to get there completely, as ADNSF doesn't output valid code - but as I say, I'm trying my best.

    I've spotted some annoyances........


    1. If I have the following in an xmlpackage :-

    HTML Code:
    <input value="1" type="text" id="qty_{ProductID}" />
    then what actually gets output to the browser is this :-

    HTML Code:
    <input value="1" type="text" id="qty_1234">
    Note that the tag is no longer self closing.
    No problem I thought, I'll simply change it to :-

    HTML Code:
    <input value="1" type="text" id="qty_{ProductID}"></input>
    But..... it again gets changed to :-

    HTML Code:
    <input value="1" type="text" id="qty_1234">

    What I ended up doing was (& it's ugly) this :-



    which outputs it correctly.


    I also had the same issue with self closing break tags & had to use this :-






    TTFN

    BFG

  2. #2
    StokesWebDevelopment is offline Junior Member
    Join Date
    Jul 2009
    Location
    Walnut Cove, NC
    Posts
    20

    Default

    Or in the xml package you can change
    Code:
    <xsl:output method="html"
    to
    Code:
    <xsl:output method="xml"
    if you are trying for xhtml strict.
    Randall Moore | Web Developer
    Stokes Web Development
    www.stokesweb.com