Click here to Skip to main content
15,917,177 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionHELP...Transforming Basic XML Tree Menu to HTML Pin
Salvatore Conti Jr26-May-09 8:19
Salvatore Conti Jr26-May-09 8:19 
AnswerRe: HELP...Transforming Basic XML Tree Menu to HTML Pin
led mike27-May-09 7:36
led mike27-May-09 7:36 
QuestionOutput not obtained Pin
Fadi Yoosuf26-May-09 5:33
Fadi Yoosuf26-May-09 5:33 
AnswerRe: Output not obtained Pin
led mike27-May-09 7:37
led mike27-May-09 7:37 
GeneralRe: Output not obtained Pin
Fadi Yoosuf27-May-09 21:41
Fadi Yoosuf27-May-09 21:41 
GeneralRe: Output not obtained Pin
led mike28-May-09 5:01
led mike28-May-09 5:01 
GeneralRe: Output not obtained Pin
Fadi Yoosuf28-May-09 22:56
Fadi Yoosuf28-May-09 22:56 
GeneralRe: Output not obtained Pin
Fadi Yoosuf29-May-09 21:39
Fadi Yoosuf29-May-09 21:39 
Led,

You argued like "A Web Browser is only going to display HTML."

Was it a blind response?

When you get time, make an html file, open it in edit mode and paste plain text in that. Try viewing in a browser and you can still see the plain text (which was written without html markups).

Now try creating another .html file and paste some xml conent in that. Try viewing in a browser and you can still see the innertext of html nodes in a non formatted manner.

Can you pls. explain the reason for this w.r.t. your argument??

Also can you try the default xml given in http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog[^].

Just change the xslt content as follows
----------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited by XMLSpy® -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/">


<xsl:for-each select="catalog/cd">

<xsl:value-of select="title"/>
<xsl:value-of select="artist"/>

</xsl:for-each>

</xsl:template>
</xsl:stylesheet>
----------------------------


Now can you pls explain why the output is displayed in the browser even if it is in text format??

If you find a solution, can you pls. explain what is wrong with my code in the first post??

Sorry for disturbing you again

It would be nice of you, if you can convince me with a good answer

Thanks
Fadi
GeneralRe: Output not obtained Pin
led mike1-Jun-09 10:37
led mike1-Jun-09 10:37 
AnswerRe: Output not obtained [modified] Pin
George L. Jackson1-Jun-09 7:21
George L. Jackson1-Jun-09 7:21 
GeneralRe: Output not obtained Pin
Fadi Yoosuf1-Jun-09 22:39
Fadi Yoosuf1-Jun-09 22:39 
QuestionASP.NET : Get Attribute Value from XML Pin
Vijay Jadhav, India.25-May-09 23:36
Vijay Jadhav, India.25-May-09 23:36 
AnswerRe: ASP.NET : Get Attribute Value from XML Pin
Vijay Jadhav, India.26-May-09 3:59
Vijay Jadhav, India.26-May-09 3:59 
QuestionRender the custom server side control using XSL Pin
Brij25-May-09 19:08
mentorBrij25-May-09 19:08 
QuestionPrint XSLT? Pin
notarry24-May-09 23:24
notarry24-May-09 23:24 
AnswerRe: Print XSLT? I want to print XSLT(HTML and PDF) file. Pin
adatapost26-May-09 1:38
adatapost26-May-09 1:38 
AnswerRe: Print XSLT? Pin
notarry27-May-09 16:06
notarry27-May-09 16:06 
QuestionReading XML Pin
M_Aurelius23-May-09 22:20
M_Aurelius23-May-09 22:20 
AnswerRe: Reading XML Pin
harold aptroot23-May-09 23:46
harold aptroot23-May-09 23:46 
QuestionHelp for newbie Pin
Konstantin Yazvinski21-May-09 12:28
Konstantin Yazvinski21-May-09 12:28 
AnswerRe: Help for newbie Pin
led mike22-May-09 4:31
led mike22-May-09 4:31 
QuestionSelect XmlElement Help Pin
papy-boom21-May-09 3:27
papy-boom21-May-09 3:27 
QuestionHow to create a tool to generate xslt to transform one xml to another? Pin
salon21-May-09 1:15
salon21-May-09 1:15 
Questionremoving unwanted empty XML elements (this one contains code in a legible form) Pin
Craig Irwin20-May-09 17:37
Craig Irwin20-May-09 17:37 
AnswerRe: removing unwanted empty XML elements (this one contains code in a legible form) [modified] Pin
brifiction24-Apr-10 18:23
brifiction24-Apr-10 18:23 

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.