|
Subject: Re: [xsl] Formatting XML output From: "Rick Quatro" <frameexpert@xxxxxxxxxxxx> Date: Fri, 13 Jan 2006 12:28:04 -0500 |
// Create the MSXML objects.
Set oXmlDoc = InitializeXObject{'Msxml2.DOMDocument.4.0'};
Set oStylesheet = InitializeXObject{'Msxml2.DOMDocument.4.0'};
If (oXmlDoc = 0) or (oStylesheet = 0)
LeaveSub;
EndIf// Build up the XML document.
Set oRoot = oXmlDoc.createElement{'toc'};
oRoot.setAttribute{'title','Standard Operating Procedures Manual'};
oXmlDoc.appendChild{oRoot};
Set oFolder = oXmlDoc.createElement{'folder'};
oFolder.setAttribute{'title','0135 Technical Support'};
oFolder.setAttribute{'expanded','false'};
oRoot.appendChild{oFolder};
Set oFile = oXmlDoc.createElement{'file'};
oFile.setAttribute{'title','Response to Customer Support Telephone Calls'};
oFile.setAttribute{'refid','File01.txt'};
oFolder.appendChild{oFile};
Set oFile = oXmlDoc.createElement{'file'};
oFile.setAttribute{'title','Customer Support Call List'};
oFile.setAttribute{'refid','File02.txt'};
oFolder.appendChild{oFile};// Transform the XML document.
Set sOutput = oXmlDoc.transformNode{oStylesheet};// Save the XML to a file.
eStr.SaveToTextFile{sOutput,ClientDir+DIRSEP+'Output.txt'};// Delete the objects. Delete Object(oXmlDoc); Delete Object(oStylesheet);
Rick Quatro Carmen Publishing 585-659-8267 www.frameexpert.com
<xsl:stylesheet...
<xsl:output indent="yes"/>
<xsl:template match="/"> <xsl:copy-of select="."/> </xsl:template>
</xsl:stylesheet>
Michael Kay http://www.saxonica.com/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: RE: [xsl] Formatting XML output, cknell | Thread | RE: [xsl] Formatting XML output, Michael Kay |
| [xsl] NaN and Infinity in format-nu, Jack Matheson | Date | [xsl] Windows 2003 Server + MSXML, Neil Hunter |
| Month |