Click here to Skip to main content
15,914,905 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: how to look for a VALUE in an xml document. Not a node. Pin
Tarun.K.S12-Dec-11 18:10
Tarun.K.S12-Dec-11 18:10 
AnswerRe: how to look for a VALUE in an xml document. Not a node. Pin
Member 86251126-Mar-12 22:40
Member 86251126-Mar-12 22:40 
QuestionHow to load xml questions into jquery flipcard? Pin
burakmartonalti14-Nov-11 19:16
burakmartonalti14-Nov-11 19:16 
QuestionXslt Transformation Pin
tellaston134527-Oct-11 6:03
tellaston134527-Oct-11 6:03 
QuestionException: "XsltContext is needed for this query because of an unknown function" Pin
NarVish20-Oct-11 22:57
NarVish20-Oct-11 22:57 
AnswerRe: Exception: "XsltContext is needed for this query because of an unknown function" Pin
NarVish21-Oct-11 0:49
NarVish21-Oct-11 0:49 
QuestionXPath problem with % value Pin
NarVish18-Oct-11 0:29
NarVish18-Oct-11 0:29 
AnswerRe: XPath problem with % value Pin
jschell18-Oct-11 8:52
jschell18-Oct-11 8:52 
GeneralRe: XPath problem with % value Pin
NarVish18-Oct-11 18:39
NarVish18-Oct-11 18:39 
GeneralRe: XPath problem with % value Pin
NarVish18-Oct-11 22:00
NarVish18-Oct-11 22:00 
GeneralRe: XPath problem with % value Pin
NarVish18-Oct-11 22:36
NarVish18-Oct-11 22:36 
QuestionHow can I put condition Pin
Noor201118-Sep-11 4:23
Noor201118-Sep-11 4:23 
GeneralRe: How can I put condition Pin
AspDotNetDev18-Sep-11 7:27
protectorAspDotNetDev18-Sep-11 7:27 
AnswerRe: How can I put condition Pin
Morgs Morgan22-Sep-11 4:40
Morgs Morgan22-Sep-11 4:40 
GeneralRe: How can I put condition Pin
Noor201130-Sep-11 0:43
Noor201130-Sep-11 0:43 
QuestionXSLT Pin
AndyInUK14-Sep-11 3:55
AndyInUK14-Sep-11 3:55 
AnswerRe: XSLT Pin
Bassam Abdul-Baki15-Sep-11 4:51
professionalBassam Abdul-Baki15-Sep-11 4:51 
GeneralRe: XSLT Pin
AndyInUK15-Sep-11 5:06
AndyInUK15-Sep-11 5:06 
GeneralRe: XSLT Pin
Rhys Gravell15-Sep-11 5:27
professionalRhys Gravell15-Sep-11 5:27 
GeneralRe: XSLT Pin
Bassam Abdul-Baki15-Sep-11 5:27
professionalBassam Abdul-Baki15-Sep-11 5:27 
AnswerRe: XSLT Pin
Andi Fandrich15-Sep-11 5:18
professionalAndi Fandrich15-Sep-11 5:18 
GeneralRe: XSLT Pin
AndyInUK15-Sep-11 5:28
AndyInUK15-Sep-11 5:28 
Thanks,

Just tried it but doesn't work -

Here is the html/javascript I am using to call xml and xsl - just incase there is some problem in script instead:-

HTML
<html>
<head>
<script type="text/javascript">
function loadXMLDoc(dname)
{
if (window.XMLHttpRequest)
  {
  xhttp=new XMLHttpRequest();
  }
else
  {
  xhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xhttp.open("GET",dname,false);
xhttp.send("");
return xhttp.responseXML;
}

function displayResult()
{
	
xml=loadXMLDoc("test.xml");

xsl=loadXMLDoc("test.xsl");
// code for IE
if (window.ActiveXObject)
  {
  ex=xml.transformNode(xsl);
  document.getElementById("example").innerHTML=ex;
  }
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation && document.implementation.createDocument)
  {
  xsltProcessor=new XSLTProcessor();
  xsltProcessor.importStylesheet(xsl);
  resultDocument = xsltProcessor.transformToFragment(xml,document);
  document.getElementById("example").appendChild(resultDocument);
  }
}
</script>
</head>
<body onLoad="displayResult()">
<div id="example" />

</body>
</html>


Thanks
AnswerRe: XSLT Pin
Rhys Gravell15-Sep-11 5:33
professionalRhys Gravell15-Sep-11 5:33 
GeneralRe: XSLT Pin
AndyInUK15-Sep-11 5:49
AndyInUK15-Sep-11 5:49 
GeneralRe: XSLT Pin
chriselst15-Sep-11 5:56
chriselst15-Sep-11 5:56 

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.