xsl-list
[Top] [All Lists]

Re: [xsl] block and templates.

2006-09-21 12:22:23
Luke Jones wrote:

Input looks something like this.

<para>
      <line number="3">
              <t>This is the first sentence in a paragraph.</t>
      </line>
      <line number="4">
              This is the second line in a paragraph.
      </line>
</para>

  You didn't say what to do with the second line (have the whitespaces
at the beginning of the text node to be kept?).  Maybe your can adapt
this:

    <xsl:value-of select="@number"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="normalise-spaces(.)"/>

  Not tested.

  Regards,

--drkm


















        

        
                
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet 
! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos 
expériences. 
http://fr.answers.yahoo.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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>