delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

<xsl:value-of select="dyn:GetSubStringFromArray( string($TagValue),'|',3)"/>
</xsl:variable>
.... other code....
<td align="left"  valign="top">
<xsl:value-of select="$Description"/>
</td>
XML:
<result_record DATA="REPORTS_MONDAY| 11/24/2008| testing| Line 1{Need Help}Line2{Need Help}Line3"/>
Thanks in advance for the support...


Overview:
I need to substitute "{Need Help}" in my XML file with something that will force a carriage return in a cell.  I have tried adding <br/> and ascii code for EL & CR.  I hope this is something really simple and I just don't know HTML well enough !?
Details:
*I am using VB6 to create an XML file based on data from an .ini file and text boxes for user input.  One of those textboxes, "description", allows for multiline input.
*I trap End of Line and Carriage Return and change to "{Need Help}" before I write the text to my XML file.
*I use the WebBrowser control to display my XML file in a VB6 form, I do this to avoid IE6 prompts for scripting and security.
Code snippets:
XSL:
<xsl:variable name="Description">
<xsl:value-of select="dyn:GetSubStringFromArray( string($TagValue),'|',3)"/>
</xsl:variable>
.... other code....
<td align="left"  valign="top">
<xsl:value-of select="$Description"/>
</td>
XML:
<result_record DATA="REPORTS_MONDAY| 11/24/2008| testing| Line 1{Need Help}Line2{Need Help}Line3"/>
Thanks in advance for the support...

TOP

I forgot to mention that I am thinking this may have to be a Javascript solution because I can't use characters like <, >, " in my XML file... hence my <br/> didn't work.  I'm currently trying to figure out a way to use javascripting to search for {Need Help} and add a <br/>... it works perfecly hardcoded, but having troubles automating.
Thanks again.

TOP

Solution found changing format of XML file to allow nested loop statements from XSL.  Case closed.
Thanks.



<xsl:value-of select="dyn:GetSubStringFromArray( string($TagValue),'|',3)"/>
</xsl:variable>
.... other code....
<td align="left"  valign="top">
<xsl:value-of select="$Description"/>
</td>
XML:
<result_record DATA="REPORTS_MONDAY| 11/24/2008| testing| Line 1{Need Help}Line2{Need Help}Line3"/>
Thanks in advance for the support...

TOP

Back Forum