You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Sameer Pattni <sp...@hotmail.com> on 2001/03/30 19:14:39 UTC

Xalan linebreak after node (please help!)

Hi

I am using xalan to transform my xml(html) to a jsp page. my xml document 
uses a standard taglib we've defined to add the weblogic context in the code 
e.g.

<td><app:src><img src="image.gif"/></app:src></td>

The namespace for this is defined at the top of the xml document.

When this gets transformed I get the following:
<td>
<app:src>
<img src="image.gif">
</app:src>
</td>

Due to the complex nature of the HTML we need to avoid the linebreaks as 
this causes images to go completely mad. If I don't use my <app:src> tag 
then everything is ok (i.e.). Why does this line break happen?

<td><img src="image.gif"></td>

How do I get Xalan to avoid putting linebreaks in after tags defined in a 
new namespace??

Thanks for any help in advance.
Sam
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Re: Xalan linebreak after node (please help!)

Posted by Gary L Peskin <ga...@firstech.com>.
Sameer Pattni wrote:
> 
> Hi
> 
> I am using xalan to transform my xml(html) to a jsp page. my xml document
> uses a standard taglib we've defined to add the weblogic context in the code
> e.g.
> 
> <td><app:src><img src="image.gif"/></app:src></td>
> 
> The namespace for this is defined at the top of the xml document.
> 
> When this gets transformed I get the following:
> <td>
> <app:src>
> <img src="image.gif">
> </app:src>
> </td>
> 
> Due to the complex nature of the HTML we need to avoid the linebreaks as
> this causes images to go completely mad. If I don't use my <app:src> tag
> then everything is ok (i.e.). Why does this line break happen?
> 
> <td><img src="image.gif"></td>
> 
> How do I get Xalan to avoid putting linebreaks in after tags defined in a
> new namespace??

Sam --

The transform is controlled by your XSLT stylesheet.  Without looking at
that, it's impossible to give you a specific reason why this is
happening except to say that this is what your stylesheet is asking
Xalan to do.  If you'd like, you can post your input XML and your XSLT
stylesheet and we'll try to figure out what's happening.  However, for
these kinds of generic (ie not Xalan-specific) XSLT questions, you're
probably better off at XSL-List where you'll have a wider audience.

Gary