Subject: AW: [xsl] xhtml output formating problems / passing through pre defined static xhtml From: Dominic Krüger <dominic@xxxxxxxxxxxxxxx> Date: Thu, 9 Sep 2004 17:05:22 +0200 |
Ok, > help you without you posting a sample XML source document, pointing out the markup that gets lost. This is part of what i copy into the stylesheet that i want to come out as it is untouched. <body onload="Initialise()" initialise="Terminate()"> <div id="pagewidth" > <div class="hidden"> <h1>Schnellnavigation:</h1> <ul> <li><a href="#navigation">Direkt zur Navigation</a> </li> <li><a href="#inhalt">Direkt zum Inhalt</a> </li> <li><a href="#fusslinks">Direkt zur Fussleiste mit allgemeinen verweisen</a> </li> <li><a href="http://www.hamburg.de">Zur Startseite von hamburg.de</a> </li> </ul> </div> <div id="header" > <div class="content"> <map name="k" id="map-logo-hhde"> <area shape="rect" coords="0,0,145,49" href="http://www.hamburg.de" alt="www.hamburg.de" /> <area shape="rect" coords="146,0,270,75" href="http://www.hamburg.de" alt="www.hamburg.de" /> <area shape="rect" coords="3,50,55,65" href="http://international.hamburg.de" alt="Welcome to Hamburg in English language" target="int" /> <area shape="rect" coords="56,50,145,65" href="http://international.hamburg.de" alt="Welcome to Hamburg in other languages" target="int" /> </map> <img src="./bilder/kf-2.gif" width="270" height="65" alt="hamburg.de Logo" id="logo-hhde" usemap="#k" /> </div> </div> <div id="outer" > <div id="inner"> <div id="leftcol" > <a name="navigation"></a><h1 class="hidden">Navigation</h1> <div class="content"> <div id="Bnav" class="nav Xbo Bbg Bboc"> <ul> <li><a href="http://www.hamburg.de" class="BTbg pfr">Startseite Hamburg.de </a></li> </ul> </div> <div id="Cnav" class="nav Xbo Cbg Cboc"> <ul> <li><a href="./index.htm" class="CTbg pfu">DiBIS-Gebdrdensprachen </a><ul> <li><a href="./integrationsamt.htm">Integrationsamt </a></li> <li><a href="./hamburg.htm"><strong>Hamburg f|r Gehvrlose</strong> </a></li> <li><a href="./bilderschau.htm">Diashow B|rgermeistersaal </a></li> </ul> </li> </ul> </div> But it comes out in one line an stripped of white spaces. Is there no way to just pass it through without altering it?? Output : <body ONUNLOAD="Terminate()" ONLOAD="Initialise()"><div id="pagewidth"><div class="hidden"><h1>Schnellnavigation:</h1><ul><li><a href="#navigation">Direkt zur Navigation</a></li><li><a href="#inhalt">Direkt zum Inhalt</a></li><li><a href="#fusslinks">Direkt zur Fussleiste mit allgemeinen Verweisen</a></li><li><a href="http://www.hamburg.de">Zur Startseite von hamburg.de</a></li></ul></div> <div id="header"><div class="content"><map id="map-logo-hhde" name="k"><area alt="www.hamburg.de" href="http://www.hamburg.de" coords="0,0,145,49" shape="rect" /><area alt="www.hamburg.de" href="http://www.hamburg.de" coords="146,0,270,75" shape="rect" /><area target="int" alt="Welcome to Hamburg in English language" href="http://international.hamburg.de" coords="3,50,55,65" shape="rect" /><area target="int" alt="Welcome to Hamburg in other languages" href="http://international.hamburg.de" coords="56,50,145,65" shape="rect" /></map><img usemap="#k" id="logo-hhde" alt="hamburg.de Logo" height="65" width="270" src="./bilder/kf-2.gif" /></div></div><div id="outer"><div id="inner"><div id="leftcol"><a name="navigation" /><h1 class="hidden">Navigation</h1><div class="content"><div class="nav Xbo Bbg Bboc" id="Bnav"><ul><li><a class="BTbg pfr" href="http://www.hamburg.de">Startseite Hamburg.de </a></li></ul></div><div class="nav Xbo Cbg Cboc" id="Cnav"><ul><li><a class="CTbg pfu" href="./index.htm">DiBIS-Gebdrdensprachen </a><ul><li><a href="./integrationsamt.htm">Integrationsamt </a></li><li><a href="./hamburg.htm"><strong>Hamburg f|r Gehvrlose</strong></a></li><li><a href="./bilderschau.htm">Diashow B|rgermeistersaal </a></li></ul></li></ul></div -----Urspr|ngliche Nachricht----- Von: Emmanouil Batsis [mailto:Emmanouil.Batsis@xxxxxxxxxxx] Gesendet: Donnerstag, 9. September 2004 14:31 An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Betreff: Re: [xsl] xhtml output formating problems / passing through pre defined static xhtml Dominic Kr|ger wrote: >I am trying to write a xhtml file that consist of some static areas (pre >formated xhtml)and some dynamic areas I want to fill with content from an >xml file. > > Uppercase characters in element attribute names like SCRIPT and ONLOAD make your XHTML invalid. Elements named 'XML' make your document invalid XML [1]! I guess this has to do with the activex stuff... >Stylesheet : http://www.zeitdesigner.de/xslt/test.xslt >Output xhtml: http://www.zeitdesigner.de/xslt/test.htm > > Your pipeline uses the correct serializer AFAIK so I'm afraid we cannot help you without you posting a sample XML source document, pointing out the markup that gets lost. [1] http://www.w3.org/TR/REC-xml/#sec-logical-struct Manos
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xhtml output formating pr, cking | Thread | Re: [xsl] xhtml output formating pr, Robert Koberg |
Re: [xsl] Xalan pronunciation, Sam Byland | Date | Re: AW: [xsl] xhtml output formatin, David Carlisle |
Month |