AW: [xsl] xhtml output formating problems / passing through pre defined static xhtml

Subject: AW: [xsl] xhtml output formating problems / passing through pre defined static xhtml
From: Dominic Krüger <dominic@xxxxxxxxxxxxxxx>
Date: Thu, 9 Sep 2004 21:12:33 +0200
Thanks to all of you for your endurance with a newby like me!! I really
apriciate it.

I posted some links earlier on with all the source files except the "input
xml" file.

Here they are again =)

Xsl stylesheet :
http://www.zeitdesigner.de/xslt/test.xslt

xslt Output:
http://www.zeitdesigner.de/xslt/test.htm

xml for the input:
http://www.zeitdesigner.de/xslt/full_sigml.xml

the real thing:
http://www.zeitdesigner.de/xslt/hamburg.htm


<map:pipeline>
    <map:match pattern="test.html">
      <map:generate src="./content/sigml/full_sigml.xml"/>
      <map:transform src="test.xslt">
        <map:parameter name="contextPath" value="{request:contextPath}"/>
      </map:transform>
      <map:serialize type="xhtml"/>
    </map:match>
</map:pipeline>

What i have to achieve is to replace the text in the <p></p> tags in the
middle of the page, write out each paragraph node of the full_sigml.xml to a
xml file of its own and adopt the links in the <xml id=***********> tags at
the top of the page.

Does that sound so impossible???

Thanks dominic


-----Urspr|ngliche Nachricht-----
Von: Robert Koberg [mailto:rob@xxxxxxxxxx]
Gesendet: Donnerstag, 9. September 2004 20:57
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: Re: [xsl] xhtml output formating problems / passing through pre
defined static xhtml

(let's start the 'AW:' over again :)

I think you are going to need to post more source (XSL and XML) and what
is being output. It might also be helpful for you to take the incorrect
output and try to make it work to see where the problem is exactly.

One more guess (and not knowing the HTML output source): does it work
if, in your XSL, you use:

<br />

instead of:

<br/>

I have seen this problem in tableless layouts and I think the fix for us
was a BR with a style 'clear:both'

hth,
-Rob



Dominic Kr|ger wrote:

>Here are some screens two show what happens.
>
>The code seems to be altered in a way that the CSS will not work correct...
>
>http://www.zeitdesigner.de/xslt/xslt_output.gif
>
>http://www.zeitdesigner.de/xslt/correct.gif
>
>
>-----Urspr|ngliche Nachricht-----
>Von: Robert Koberg [mailto:rob@xxxxxxxxxx]
>Gesendet: Montag, 9. August 2004 20:03
>An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Betreff: Re: AW: AW: AW: AW: AW: [xsl] xhtml output formating problems /
>passing through pre defined static xhtml
>
>Some quick guesses as to your problem:
>
>Do you have an empty /html/head/title or /html/head/script? If so then
>IE won't display the rest of the page. For the title, put something in
>there. For the script do:
>
><script src="blah.js">//</script>
>
>HTH,
>-Rob
>
>
>Dominic Kr|ger wrote:
>
>
>
>>Well,
>>i've tried with just copying the XHTML into the xslt:stylesheet and it
>>
>>
>won't
>
>
>>work (won't display correct because of missing spaces at the end of some
>>nodes's content)
>>i've tried fidling around with preserve-space and it wouldn't work with
the
>>XHTML "pasted" into the Stylesheet.
>>
>>And I can't split the document into a top part and a bottom part, because
>>the dynamic parts I have to fill in are nested in the middle of several
>>other tags, and the XML parser won't "like" it...
>>
>>Sorry I don't really get it. Or is there something BIG that I'm missing
>>totally?
>>
>>Dominic
>>
>>-----Urspr|ngliche Nachricht-----
>>Von: David Carlisle [mailto:davidc@xxxxxxxxx]
>>Gesendet: Donnerstag, 9. September 2004 19:16
>>An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>>Betreff: Re: AW: AW: AW: AW: [xsl] xhtml output formating problems /
>>
>>
>passing
>
>
>>through pre defined static xhtml
>>
>>
>>
>>
>>
>>
>>>Cause I can't get it to write out the XHTML as I need ist...
>>>
>>>
>>>
>>>
>>???
>>As I explained in (one of) my replies you have full control over the
>>white space in element content in the result document, you can exactly
>>control any indentation thatis required. You don't have control over the
>>whitespace insode a tag so if you require a specific attribute layout
>>like
>><abc x=21"
>>    y="2"
>>
>>
>>then XSLT can not do that as it can not control the tags at all, but if
>>you want to have
>>
>><x>
>>  <b>
>> <c>
>>...
>>
>>Then it is easy enough to achieve that using any pf teh methods I listed
>>earlier
>>
>>David

Current Thread