Click here to Skip to main content
14,359,163 members
   

XML / XSL

 
QuestionXSLT Pin
AndyInUK14-Sep-11 4:55
memberAndyInUK14-Sep-11 4:55 
AnswerRe: XSLT Pin
Bassam Abdul-Baki15-Sep-11 5:51
professionalBassam Abdul-Baki15-Sep-11 5:51 
GeneralRe: XSLT Pin
AndyInUK15-Sep-11 6:06
memberAndyInUK15-Sep-11 6:06 
GeneralRe: XSLT Pin
Rhys Gravell15-Sep-11 6:27
professionalRhys Gravell15-Sep-11 6:27 
GeneralRe: XSLT Pin
Bassam Abdul-Baki15-Sep-11 6:27
professionalBassam Abdul-Baki15-Sep-11 6:27 
AnswerRe: XSLT Pin
Andi Fandrich15-Sep-11 6:18
professionalAndi Fandrich15-Sep-11 6:18 
GeneralRe: XSLT Pin
AndyInUK15-Sep-11 6:28
memberAndyInUK15-Sep-11 6:28 
AnswerRe: XSLT Pin
Rhys Gravell15-Sep-11 6:33
professionalRhys Gravell15-Sep-11 6:33 
The below is not perfect but is getting there. Unfortunately I need to leave the office soon but hope it helps...

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
	<html>
		<head>
			<title>Updated Template</title>
		</head>
		<body>
			<table border="0">
				<xsl:for-each select="ABC/DEF">
					<tr>
						<td><xsl:value-of select="GHI" /></td>
					</tr>
					<tr>
						<td>
							<xsl:variable name="inStr" select="."></xsl:variable>
							<xsl:variable name="outStr">
								<xsl:call-template name="template2">
									<xsl:with-param name="parameter2" select="$inStr"/>
								</xsl:call-template>
							</xsl:variable>
							<xsl:copy-of select="$outStr"/>
						</td>
					</tr>
				</xsl:for-each>
			</table>		
		</body>
	</html>
	</xsl:template>	
	<xsl:template name="template2">
		<xsl:param name="parameter2"/>
			<xsl:choose>
				<xsl:when test="contains($parameter2,'')">
					<xsl:value-of select="substring-before($parameter2,'')"/><p/>
						<xsl:call-template name="template2">
							<xsl:with-param name="parameter2">
								<xsl:value-of select="substring-after($parameter2,'')"/>
							</xsl:with-param>
						</xsl:call-template>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$parameter2"/>
				</xsl:otherwise>
			</xsl:choose>
	</xsl:template>
</xsl:stylesheet>

Rhys

"Technological progress is like an axe in the hands of a pathological criminal"
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe"

GeneralRe: XSLT Pin
AndyInUK15-Sep-11 6:49
memberAndyInUK15-Sep-11 6:49 
GeneralRe: XSLT Pin
chriselst15-Sep-11 6:56
memberchriselst15-Sep-11 6:56 
GeneralRe: XSLT Pin
AndyInUK15-Sep-11 7:09
memberAndyInUK15-Sep-11 7:09 
GeneralRe: XSLT Pin
Bassam Abdul-Baki15-Sep-11 7:51
professionalBassam Abdul-Baki15-Sep-11 7:51 
GeneralRe: XSLT Pin
AndyInUK16-Sep-11 0:38
memberAndyInUK16-Sep-11 0:38 
GeneralRe: XSLT Pin
PIEBALDconsult16-Sep-11 6:20
protectorPIEBALDconsult16-Sep-11 6:20 
GeneralRe: XSLT Pin
PIEBALDconsult15-Sep-11 19:10
protectorPIEBALDconsult15-Sep-11 19:10 
QuestionShould we get rid of the redundant quotes now that HTML5 does it? Pin
ed welch12-Sep-11 12:20
membered welch12-Sep-11 12:20 
Questioni have question about rss xml. Pin
buffering837-Aug-11 17:41
memberbuffering837-Aug-11 17:41 
AnswerRe: i have question about rss xml. Pin
Dr.Walt Fair, PE7-Aug-11 18:31
professionalDr.Walt Fair, PE7-Aug-11 18:31 
QuestionXSD question - Calling an xsd from another xsd Pin
bgallagher_lib4-Aug-11 6:06
memberbgallagher_lib4-Aug-11 6:06 
AnswerRe: XSD question - Calling an xsd from another xsd Pin
Ger Hayden6-Aug-11 0:24
memberGer Hayden6-Aug-11 0:24 
Questiondisplat html via xslt macro Pin
benams26-Jul-11 4:31
memberbenams26-Jul-11 4:31 
QuestionHow to Work with XML file in MFC Dialog based application? Pin
Le@rner25-Jul-11 21:29
memberLe@rner25-Jul-11 21:29 
AnswerRe: How to Work with XML file in MFC Dialog based application? - Repost Pin
Richard MacCutchan25-Jul-11 22:30
protectorRichard MacCutchan25-Jul-11 22:30 
QuestionShould I ask for better XML? Pin
chriselst18-Jul-11 1:02
memberchriselst18-Jul-11 1:02 
AnswerRe: Should I ask for better XML? Pin
dasblinkenlight18-Jul-11 4:10
memberdasblinkenlight18-Jul-11 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.