Click here to Skip to main content
15,891,687 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Handling singleclick and doubleclick events on same line Pin
Ashfield20-Oct-08 9:32
Ashfield20-Oct-08 9:32 
QuestionGenerate missing XML Pin
Lea Hayes17-Oct-08 2:14
Lea Hayes17-Oct-08 2:14 
AnswerRe: Generate missing XML Pin
Frank Horn17-Oct-08 8:14
Frank Horn17-Oct-08 8:14 
GeneralRe: Generate missing XML Pin
Lea Hayes21-Oct-08 9:43
Lea Hayes21-Oct-08 9:43 
QuestionXmlReaderSettings does not resolve an xs:import with http://... location Pin
giangilpredo16-Oct-08 11:31
giangilpredo16-Oct-08 11:31 
QuestionXML + XSL in a Client Browser Pin
Lea Hayes15-Oct-08 11:21
Lea Hayes15-Oct-08 11:21 
AnswerRe: XML + XSL in a Client Browser Pin
led mike15-Oct-08 11:35
led mike15-Oct-08 11:35 
AnswerRe: XML + XSL in a Client Browser Pin
Steve Marsh21-Oct-08 8:45
Steve Marsh21-Oct-08 8:45 
I'm not sure which browsers other than IE support embedded XSLT documents, meaning they automatically do the transformation. However you can do the transformation using javascript and write out the result using the .innerHTML property. This is especially useful when creating Ajax style interfaces.

The code looks something like this:

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument");
xmlDoc.async = false;
xmlDoc.load("doc.xml")

var xslDoc = new ActiveXObject("Msxml2.DOMDocument");
xslDoc.async = false;
xslDoc.load(Server.MapPath("doc.xsl"));

myDiv.innerHTML = xmlDoc.transformNode(xslDoc);


For cross-browser support you will need to modify the line of code where you create the Xml document because different browsers handle it differently.
GeneralRe: XML + XSL in a Client Browser Pin
Lea Hayes21-Oct-08 9:07
Lea Hayes21-Oct-08 9:07 
Questionrelated search Pin
rose19615-Oct-08 2:18
rose19615-Oct-08 2:18 
QuestionRe: related search Pin
led mike15-Oct-08 4:53
led mike15-Oct-08 4:53 
AnswerRe: related search Pin
rose19615-Oct-08 19:24
rose19615-Oct-08 19:24 
GeneralRe: related search Pin
led mike16-Oct-08 4:50
led mike16-Oct-08 4:50 
GeneralXML load in C# fails Pin
hairy_hats15-Oct-08 1:18
hairy_hats15-Oct-08 1:18 
GeneralRe: XML load in C# fails Pin
led mike15-Oct-08 4:52
led mike15-Oct-08 4:52 
GeneralRe: XML load in C# fails Pin
hairy_hats15-Oct-08 5:01
hairy_hats15-Oct-08 5:01 
QuestionXSD.exe XML question Pin
Planker14-Oct-08 5:21
Planker14-Oct-08 5:21 
QuestionXML and performance Pin
pedefetoll7-Oct-08 22:49
pedefetoll7-Oct-08 22:49 
AnswerRe: XML and performance [modified] Pin
led mike8-Oct-08 5:17
led mike8-Oct-08 5:17 
GeneralRe: XML and performance Pin
pedefetoll9-Oct-08 0:00
pedefetoll9-Oct-08 0:00 
QuestionRe: XML and performance Pin
led mike9-Oct-08 4:36
led mike9-Oct-08 4:36 
GeneralRe: XML and performance Pin
Gerald Schwab15-Oct-08 16:57
Gerald Schwab15-Oct-08 16:57 
GeneralRe: XML and performance Pin
pedefetoll17-Oct-08 6:54
pedefetoll17-Oct-08 6:54 
QuestionXPath Predicates Pin
threemp37-Oct-08 12:11
threemp37-Oct-08 12:11 
AnswerRe: XPath Predicates Pin
threemp37-Oct-08 12:15
threemp37-Oct-08 12:15 

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.