xsl-list
[Top] [All Lists]

RE: [xsl] inline troubles

2006-09-07 14:55:54

(But are you sure you want the value of the first name element child 
of the name element? That seems rather odd.)

I'm not sure I understand what your mean by that.  The confusion may be
in that I used "fake" code rather then the real one.


 
...we have <xsl:text>...</xsl:text>:

<xsl:template match="name">
   <xsl:value-of select="name" />
   <xsl:text> : </xsl:text>
   <xsl:apply-templates />
</xsl:template>


I had at one time had <xsl:text>:</xsl:text>, however it was still getting 
moved to the front.

It wasn't until I did

<xsl:template match="name">
        <xsl:apply-templates>   
        <xsl:value-of select="name/>
        <xsl:text> : </xsl:text>
</xsl:templeate>

I don't understand why switching the apply-templates above the rest of the 
code worked.  By my logical thinking, that doesn't make sense. :-/

At the moment everything seems to be working great.  Thanks again.

--~------------------------------------------------------------------
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>