ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
AW: [xsl] xhtml output formating problems / passing through pre defined static xhtml
by =?iso-8859-1?Q?Dominic_Kr=FCger?= other posts by this author
Sep 9 2004 3:05PM messages near this date
AW: AW: AW: AW: [xsl] xhtml output formating problems / passing through pre defined static xhtml | Re: [xsl] Attention: list management (was: AW: AW: [xsl] xhtml output formating problems / passing through pre defined static xhtml)
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-Gebärdensprachen </a><ul>
<li> <a href="./integrationsamt.htm">Integrationsamt </a></li>
<li> <a href="./hamburg.htm"><strong>Hamburg für Gehörlose</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-Gebärdensprachen </a><ul><li><a
href="./integrationsamt.htm"> Integrationsamt </a></li><li><a
href="./hamburg.htm"> <strong>Hamburg für Gehörlose</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@[...].com] 
Gesendet: Donnerstag, 9. September 2004 14:31
An: xsl-list@[...].com
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

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@[...].com> 
--+--



--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@[...].com> 
--+--

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved