ColdFusion doesn't handle this well.  The problem is that it doesn't
recognize text nodes, per se.  In your example you have, in effect:

<aTag><textnode /><inlineTag><textnode /></inlineTag><textnode /></aTag>

There is no <textnode> tag, of course, but it's meant to be
illustrative.  ColdFusion doesn't make that distinction, however.  I
never found a way around this.

On 2/15/07, Ian Skinner <[EMAIL PROTECTED]> wrote:
>
> Well mostly XSLT, but I am using ColdFusion to do this.
>
> XML Fragment:
> <aTag>Some text blah blah blah <inlineTag>Foobar</inlineTag> more text blah 
> blah blah</aTag>
>
> What would one do in XSLT to get at the 'inlineTag' to process, but keep it 
> inline with the text?
>
> I tried templates, but that seems to move it in the flow.  I.E.
> <xsl:template match="aTag">
>   <p>
>     <xsl:value-of select="."/>
>     <xsl:apply-template select="inlineTag"/>
>   </p>
> </xsl:template>
>
> <xsl:template match="inlineTag">
>   <strong><xsl:value-of="." /></strong>
> </xsl:template>
>
> Produced output something like this:
> <p>Some text blah blah blah more text blah blah blah
> <strong>Foobar</strong></p>
>
> Note how Foobar was moved to the end of the string.  This is undesirable in 
> this case.
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> ---------
> | 1 |   |
> ---------  Binary Soduko
> |   |   |
> ---------
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice:  This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269970
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to