Click here to Skip to main content
15,899,124 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Question[Message Deleted] Pin
vankayalapati27-Aug-08 19:04
vankayalapati27-Aug-08 19:04 
AnswerRe: how to add event handling in xslt Pin
led mike28-Aug-08 5:11
led mike28-Aug-08 5:11 
QuestionReading values from unformatted xml Pin
indian14325-Aug-08 23:40
indian14325-Aug-08 23:40 
AnswerRe: Reading values from unformatted xml Pin
Christian Graus26-Aug-08 0:50
protectorChristian Graus26-Aug-08 0:50 
Questionxml to xml [modified] Pin
Member 470396625-Aug-08 5:16
Member 470396625-Aug-08 5:16 
AnswerRe: xml to xml Pin
led mike26-Aug-08 5:40
led mike26-Aug-08 5:40 
AnswerRe: xml to xml Pin
led mike27-Aug-08 6:25
led mike27-Aug-08 6:25 
QuestionXSL copy-of problem! Pin
Saul Johnson24-Aug-08 5:46
Saul Johnson24-Aug-08 5:46 
Hi All!

The advice I got from this forum in regards to using copy-of instead of value-of was excellent, my XSL is working almost perfectly, however there is one small problem.

This XSL:

<xsl:template match="/HTML/BODY//B">
		<B ID="{@ID}" CLASS="{@CLASS}" TITLE="{@TITLE}" STYLE="{@STYLE}" DIR="{@DIR}" LANG="{@LANG}" ONFOCUS="{@ONFOCUS}" ONBLUR="{@ONBLUR}" ONCLICK="{@ONCLICK}" ONDBLCLICK="{@ONDBLCLICK}" ONMOUSEDOWN="{@ONMOUSEDOWN}" ONMOUSEUP="{@ONMOUSEUP}" ONMOUSEOVER="{@ONMOUSEOVER}" ONMOUSEMOVE="{@ONMOUSEMOVE}" ONMOUSEOUT="{@ONMOUSEOUT}" ONKEYPRESS="{@ONKEYPRESS}" ONKEYDOWN="{@ONKEYDOWN}" ONKEYUP="{@ONKEYUP}">
			<xsl:copy-of select="."/>
		</B>
	</xsl:template>


Produces this output:

<B ONCLICK="" ONDBLCLICK="" ONMOUSEDOWN="" ONMOUSEUP="" ONMOUSEOVER="" ONMOUSEMOVE="" ONMOUSEOUT="" ONKEYPRESS="" ONKEYDOWN="" ONKEYUP="" ID="" CLASS="" TITLE="" STYLE="" DIR="" LANG="">
<B>
   Hello World!
</B></B>


From this input:

<B>
			Hello World!
			
		</B><BR/>


The B tags are being duplicated due to my use of the "." Xpath syntax, however when I tried "child::*" the text inside all single level tags like:

<B>Hello World!</B>


is not displayed at all.

Can anybody suggest a soloution to this problem.

Thanks!

MrWolfy Big Grin | :-D
AnswerRe: XSL copy-of problem! Pin
Frank Horn25-Aug-08 8:11
Frank Horn25-Aug-08 8:11 
GeneralRe: XSL copy-of problem! Pin
Saul Johnson25-Aug-08 11:22
Saul Johnson25-Aug-08 11:22 
GeneralRe: XSL copy-of problem! Pin
Frank Horn25-Aug-08 21:10
Frank Horn25-Aug-08 21:10 
GeneralRe: XSL copy-of problem! Pin
Saul Johnson1-Sep-08 0:35
Saul Johnson1-Sep-08 0:35 
Questiontransform XML to XML Pin
StevenGoldberg23-Aug-08 11:56
StevenGoldberg23-Aug-08 11:56 
QuestionXSL value-of output problem! Pin
Saul Johnson22-Aug-08 8:24
Saul Johnson22-Aug-08 8:24 
AnswerRe: XSL value-of output problem! Pin
Saul Johnson23-Aug-08 4:16
Saul Johnson23-Aug-08 4:16 
GeneralRe: XSL value-of output problem! Pin
Frank Horn23-Aug-08 9:25
Frank Horn23-Aug-08 9:25 
GeneralRe: XSL value-of output problem! Pin
Saul Johnson23-Aug-08 11:51
Saul Johnson23-Aug-08 11:51 
Question[Message Deleted] Pin
debobrata21-Aug-08 1:27
debobrata21-Aug-08 1:27 
AnswerRepost Pin
led mike21-Aug-08 4:58
led mike21-Aug-08 4:58 
QuestionHow to get the attribute name from xml using xslt Pin
ThangamSundar20-Aug-08 23:43
ThangamSundar20-Aug-08 23:43 
AnswerRe: How to get the attribute name from xml using xslt Pin
led mike21-Aug-08 4:56
led mike21-Aug-08 4:56 
QuestionQualified XML Root, InvalidOperationException while deserializing Pin
abcxyz8220-Aug-08 9:49
abcxyz8220-Aug-08 9:49 
QuestionXSL Nesting Problem! Pin
Saul Johnson19-Aug-08 6:00
Saul Johnson19-Aug-08 6:00 
AnswerRe: XSL Nesting Problem! Pin
led mike19-Aug-08 11:11
led mike19-Aug-08 11:11 
AnswerRe: XSL Nesting Problem! Pin
Frank Horn19-Aug-08 21:16
Frank Horn19-Aug-08 21:16 

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.