You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by gu...@teleco.upv.es on 2000/03/14 18:53:04 UTC

Help-White spaces

Hi friends. I am usig the following xsl code. I create one variable
which is used in the "src" attribute of frame.


 <xsl:template match="SESSION">
        <xsl:variable name="pu">      
         <xsl:value-of select="."/>.xml
        </xsl:variable>
        
        
        <FRAMESET  cols="20%,*">
            <FRAME name="left" src="{$pu}" frameborder="1"
marginwith="5"               noresize="" scrolling="automatic"
marginheigth="25"/>
            <FRAME name="center" src="acabando.xml"
frameborder="1"              marginwith="15"  scrolling="automatic"
marginheigth="25"/>
        </FRAMESET>	 
   </xsl:template>    

Cocoon translates this to HTML but adding white spaces to the "src"
attribute. This is for me a problem.


<FRAMESET cols="20%,*"><FRAME frameborder="1" marginheigth="25"
   marginwith="5" name="left" noresize="" scrolling="automatic"
   src="
       
        36e87a
        .xml
        "><FRAME frameborder="1" marginheigth="25" marginwith="15"
   name="center" scrolling="automatic"
src="acabando.xml"></FRAMESET></HTML>


How can i avoid this problem?

Any help is apreciated. Thanks.

Re: Help-White spaces

Posted by Donald Ball <ba...@webslingerZ.com>.
On Tue, 14 Mar 2000, K.C. Jones wrote:

> Does normalize-space work here, as in:
> 
>              <FRAME name="left" src="{normalize-space($pu)}" frameborder="1"
> 
> I'm guessing on the exact syntax.  More info on normalize-space
> here: http://www.w3.org/TR/xpath#function-normalize-space
> [Note it was called normalize() in early drafts and in IE5]

That'll be a xalan question (assuming you're using xalan), not a cocoon
question.

- donald


Re: Help-White spaces

Posted by "K.C. Jones" <kj...@phoenix-pop.com>.
Does normalize-space work here, as in:

             <FRAME name="left" src="{normalize-space($pu)}" frameborder="1"

I'm guessing on the exact syntax.  More info on normalize-space
here: http://www.w3.org/TR/xpath#function-normalize-space
[Note it was called normalize() in early drafts and in IE5]

Cheers,
KC

guiferpo@teleco.upv.es wrote:
> 
> Hi friends. I am usig the following xsl code. I create one variable
> which is used in the "src" attribute of frame.
> 
>  <xsl:template match="SESSION">
>         <xsl:variable name="pu">
>          <xsl:value-of select="."/>.xml
>         </xsl:variable>
> 
> 
>         <FRAMESET  cols="20%,*">
>             <FRAME name="left" src="{$pu}" frameborder="1"