Click here to Skip to main content
15,888,351 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questiongenerate xslt code dynamically Pin
sdee211-Jun-07 14:42
sdee211-Jun-07 14:42 
AnswerRe: generate xslt code dynamically Pin
led mike12-Jun-07 4:45
led mike12-Jun-07 4:45 
Questionlanguage codings Pin
HUMPPAAA!11-Jun-07 3:30
HUMPPAAA!11-Jun-07 3:30 
AnswerRe: language codings Pin
HUMPPAAA!11-Jun-07 4:16
HUMPPAAA!11-Jun-07 4:16 
Questionxsl highlight function breaking html tags Pin
werD8-Jun-07 8:33
werD8-Jun-07 8:33 
AnswerRe: xsl highlight function breaking html tags Pin
werD8-Jun-07 10:43
werD8-Jun-07 10:43 
Questionxs:group with attribute Pin
Eugene Mirotin (Guard)7-Jun-07 11:41
Eugene Mirotin (Guard)7-Jun-07 11:41 
QuestionLogicaly selecting a section of XML Pin
Haun the 2nd7-Jun-07 11:11
Haun the 2nd7-Jun-07 11:11 
Ok so I made an XML data sheet that works fine, but i know i will need the data. So i need to be able to make the XML display the correct info according to the id="" How do I do this?

script.js:
//parser start
var xmlDoc;
function loadXML(){
//load xml file
// code for IE
if (window.ActiveXObject)
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.load("product_info.xml");
getmessage();
}
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation && document.implementation.createDocument)
{
xmlDoc=document.implementation.createDocument("","",null);
xmlDoc.load("product_info.xml");
xmlDoc.onload=getmessage;
}
else
{
alert('Your browser cannot handle this script');
}
}
// Actual message maker
function getmessage()
{
document.getElementById("name").innerHTML=xmlDoc.getElementsByTagName("name")[0].childNodes[0].nodeValue;
document.getElementById("file_size").innerHTML=xmlDoc.getElementsByTagName("file_size")[0].childNodes[0].nodeValue;
document.getElementById("summary").innerHTML=xmlDoc.getElementsByTagName("summary")[0].childNodes[0].nodeValue;
document.getElementById("version").innerHTML=xmlDoc.getElementsByTagName("version")[0].childNodes[0].nodeValue;
}
//parser end
function dio(){
window.open("dio.html")
}

dio.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="SHORTCUT ICON" href="images/logo_orig/info.ico" />
<script src="script.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Product Info</title>
</head>
<body onload="loadXML()" bgcolor="#fffacd" text="#000000" link="FF4500">
<center>
<h1>Product Information</h1>
</center>
<p>
<b><u>File Name: </u></b><span id="name"></span><br />
<b><u>File Size: </u></b><span id="file_size"></span><br />
<b><u>File Summary: </u></b><span id="summary"></span><br />
<b><u>File Version: </u></b><span id="version"></span><br />
</p>
</body>
</html>

product_info.xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<products>
<download>
<name>Bustin' Blox</name>
<file_size>2 Mb</file_size>
<summary>Our version of Brick. Only One Level (Kinda Sucks)</summary>
<version>1.0.0</version>
</download>
</products>

AnswerRe: Logicaly selecting a section of XML Pin
Haun the 2nd20-Jun-07 8:02
Haun the 2nd20-Jun-07 8:02 
QuestionXML Web service Pin
dews turner6-Jun-07 5:14
dews turner6-Jun-07 5:14 
AnswerRe: XML Web service Pin
Eugene Mirotin (Guard)8-Jun-07 4:41
Eugene Mirotin (Guard)8-Jun-07 4:41 
QuestionRe: XML Web service Pin
dews turner10-Jun-07 21:55
dews turner10-Jun-07 21:55 
Questionregarding xsl Pin
DGtech4-Jun-07 23:14
DGtech4-Jun-07 23:14 
AnswerRe: regarding xsl Pin
blackjack21505-Jun-07 0:56
blackjack21505-Jun-07 0:56 
QuestionHow to validate dynamic controls Pin
praveenkumar_mca4-Jun-07 21:19
praveenkumar_mca4-Jun-07 21:19 
AnswerRe: How to validate dynamic controls Pin
George L. Jackson5-Jun-07 11:40
George L. Jackson5-Jun-07 11:40 
QuestionXMLClassGenerator.exe Pin
Carmelo T.4-Jun-07 19:27
Carmelo T.4-Jun-07 19:27 
AnswerRe: XMLClassGenerator.exe Pin
George L. Jackson5-Jun-07 11:42
George L. Jackson5-Jun-07 11:42 
GeneralRe: XMLClassGenerator.exe Pin
Carmelo T.6-Jun-07 3:35
Carmelo T.6-Jun-07 3:35 
Questionhow do you set the data of an XML node? Pin
nathan74-Jun-07 17:51
nathan74-Jun-07 17:51 
QuestionCell Border not displaying for null or empty vlaues Pin
engsrini4-Jun-07 11:17
engsrini4-Jun-07 11:17 
AnswerRe: Cell Border not displaying for null or empty vlaues Pin
Arun.Immanuel4-Jun-07 15:33
Arun.Immanuel4-Jun-07 15:33 
QuestionShortcoming with XmlReader (2.0) Pin
PIEBALDconsult31-May-07 15:14
mvePIEBALDconsult31-May-07 15:14 
AnswerRe: Shortcoming with XmlReader (2.0) [modified] Pin
George L. Jackson1-Jun-07 13:33
George L. Jackson1-Jun-07 13:33 
GeneralRe: Shortcoming with XmlReader (2.0) Pin
PIEBALDconsult1-Jun-07 14:33
mvePIEBALDconsult1-Jun-07 14:33 

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.