Click here to Skip to main content

XML / XSL

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
AnswerRe: Problem with MSXML6 + namespace + XPath PinmvpStuart Dootson1:10 23 Feb '10  
QuestionProblem with loading a xml to DataSet Pinmemberalireza_shokoie0:42 16 Feb '10  
AnswerRe: Problem with loading a xml to DataSet Pinmemberdaveyerwin3:51 18 Feb '10  
QuestionXSL help PinmemberMember 39976061:13 7 Feb '10  
AnswerRe: XSL help PinmvpStuart Dootson2:09 7 Feb '10  
QuestionUsing MSXML2.ServerXMLHTTP.4.0 and ASP Pinmembertommywick655:49 6 Feb '10  
QuestionXSL import another XSL on Client-Side. Pinmemberyeob21:22 4 Feb '10  
I try XSL Transfrom on client-side using javascript. My XSL file has a import tag in itself, but it couln't find the another XSL file. I have to excute this transform on Client-Side for
some reason. How can I put the import href content
Here goes my test code. this page written with .NET
 
Javascript code on the webpage.
function Transform() {
var xsl = new ActiveXObject("MSXML.DOMDocument");
var xml = new ActiveXObject("MSXML.DOMDocument");
xsl.async = false;
xsl.load(dataXmlPath);
xsl.async = false;
xsl.load(styleXslPath);
 
var data = xml.transformNode(xsl);
}
 
number.xml (XML Data file)-----------------------
<?xml version='1.0'?>
<data>
<circle>
<radius>12</radius>
</circle>
<circle>
<radius>37.5</radius>
</circle>
</data>
 

calc.xsl (XSL Style file)------------------------
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="calc2.xsl"/>
</xsl:stylesheet>
 

calc2.xsl (XSL import file)------------------------
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="data">
<circles>
<xsl:for-each select="circle">
<circle>
<xsl:copy-of select="node()"/>
<circumference>
<xsl:value-of select="radius"/>
</circumference>
</circle>
</xsl:for-each>
</circles>
</xsl:template>
</xsl:stylesheet>
AnswerRe: XSL import another XSL on Client-Side. Pinmemberdaveyerwin5:19 5 Feb '10  
GeneralRe: XSL import another XSL on Client-Side. Pinmemberyeob20:04 7 Feb '10  
GeneralRe: XSL import another XSL on Client-Side. Pinmemberdaveyerwin4:39 8 Feb '10  
QuestionMessage Removed Pinmemberajester67:50 4 Feb '10  
AnswerRe: Newbie question - can't figure out xsl PinsupporterMark Nischalke7:54 4 Feb '10  
AnswerRe: Newbie question - can't figure out xsl PinmvpRichard MacCutchan7:57 4 Feb '10  
QuestionSAOP Question Pinmembercmpemikail0:38 2 Feb '10  
AnswerRe: SAOP Question PinmemberSeMartens21:27 2 Feb '10  
GeneralImporting COM dll from unix Pinmembertom groezer1:42 1 Feb '10  
GeneralRe: Importing COM dll from unix PinmvpStuart Dootson4:03 1 Feb '10  
GeneralRe: Importing COM dll from unix Pinmembertom groezer3:04 2 Feb '10  
GeneralRe: Importing COM dll from unix PinmvpStuart Dootson3:39 2 Feb '10  
GeneralRe: Importing COM dll from unix Pinmembertom groezer19:57 7 Feb '10  
GeneralRe: Importing COM dll from unix PinmvpStuart Dootson21:15 7 Feb '10  
QuestionXML Database PinmemberKORCARI4:41 29 Jan '10  
AnswerRe: XML Database PinmemberMos Dan - Lucian5:48 29 Jan '10  
AnswerRe: XML Database PinmvpStuart Dootson4:05 1 Feb '10  
Questionparsing problem Pinmembertrioum0:38 28 Jan '10  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.5.120210.1 | Last Updated 10 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid