Click here to Skip to main content
15,924,367 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralXML Porting Problem Pin
Shenthil9-Feb-04 19:22
Shenthil9-Feb-04 19:22 
GeneralRe: XML Porting Problem Pin
ian mariano22-Feb-04 11:58
ian mariano22-Feb-04 11:58 
GeneralTitle bar in internet browser with frames Pin
Vancouver5-Feb-04 19:42
Vancouver5-Feb-04 19:42 
GeneralXSLT Pin
Large Data File3-Feb-04 6:36
Large Data File3-Feb-04 6:36 
GeneralRe: XSLT Pin
Not Active4-Feb-04 2:50
mentorNot Active4-Feb-04 2:50 
GeneralRe: XSLT Pin
Large Data File8-Feb-04 22:59
Large Data File8-Feb-04 22:59 
GeneralRe: XSLT Pin
Not Active9-Feb-04 3:02
mentorNot Active9-Feb-04 3:02 
GeneralRe: XSLT Pin
Large Data File9-Feb-04 3:32
Large Data File9-Feb-04 3:32 
I'm using a .NET framework v1.0 so i'm restricted with which overload i can use in the transfrom method. What i do is give the Xsl a XPathNavigator that i created from the XmlDocument, i give it null for the arguments and a stream to write to:
<br />
string transfrormerStyleSheet = LoadTransfrormer();<br />
XmlDocument transformationDocument = new XmlDocument();<br />
transformationDocument.LoadXml(transfrormerStyleSheet);<br />
XmlNodeReader transformationReader = new XmlNodeReader(transformationDocument);<br />
XmlDocument guiXmlDocument = new XmlDocument();				<br />
xmlDocument.LoadXml(xmlAsString);	<br />
<br />
XslTransform transformer = new XslTransform(); <br />
transformer.Load(transformationReader);<br />
<br />
XPathNavigator xpn = xmlDocument.CreateNavigator();<br />
FileStream fs = new FileStream(Environment.CurrentDirectory+"\\TempXMLstream.xml",FileMode.Create);<br />
StreamWriter sw = new StreamWriter(fs,System.Text.Encoding.UTF8);<br />
transformer.Transform(xpn,null,sw);<br />
sw.Flush();<br />
sw.Close();<br />
fs.Close();<br />

I need the stream to be in UTF8 specificly.
GeneralDataSet - reading in and XML Document Pin
Member 64401630-Jan-04 7:49
Member 64401630-Jan-04 7:49 
GeneralRe: DataSet - reading in and XML Document Pin
Rebreath27-Feb-04 11:18
Rebreath27-Feb-04 11:18 
QuestionMost efficient way to save changes made in xmlDoc? Pin
sinnen29-Jan-04 8:29
sinnen29-Jan-04 8:29 
QuestionXSLT - how to preserve empty spaces? Pin
Cristoff26-Jan-04 9:26
Cristoff26-Jan-04 9:26 
AnswerRe: XSLT - how to preserve empty spaces? Pin
Not Active26-Jan-04 10:03
mentorNot Active26-Jan-04 10:03 
GeneralRe: XSLT - how to preserve empty spaces? Pin
Cristoff29-Jan-04 7:00
Cristoff29-Jan-04 7:00 
Generalthis... Pin
Cristoff29-Jan-04 7:21
Cristoff29-Jan-04 7:21 
AnswerRe: XSLT - how to preserve empty spaces? Pin
Anonymous8-Feb-04 19:09
Anonymous8-Feb-04 19:09 
GeneralI'm lazy - How to do it without learning XSLT :) Pin
Cristoff22-Jan-04 0:48
Cristoff22-Jan-04 0:48 
GeneralRe: I'm lazy - How to do it without learning XSLT :) Pin
Not Active22-Jan-04 10:57
mentorNot Active22-Jan-04 10:57 
GeneralRe: I'm lazy - How to do it without learning XSLT :) Pin
Cristoff23-Jan-04 0:37
Cristoff23-Jan-04 0:37 
GeneralRe: I'm lazy - How to do it without learning XSLT :) Pin
Matthew Hazlett28-Jan-04 8:24
Matthew Hazlett28-Jan-04 8:24 
GeneralRe: I'm lazy - How to do it without learning XSLT :) Pin
Cristoff29-Jan-04 6:55
Cristoff29-Jan-04 6:55 
GeneralRe: I'm lazy - How to do it without learning XSLT :) Pin
Matthew Hazlett29-Jan-04 9:44
Matthew Hazlett29-Jan-04 9:44 
GeneralXSLT - Adding whitespace to a string Pin
cheezdog20-Jan-04 17:08
cheezdog20-Jan-04 17:08 
GeneralRe: XSLT - Adding whitespace to a string Pin
Philip Fitzsimons21-Jan-04 3:19
Philip Fitzsimons21-Jan-04 3:19 
GeneralDynamic Link Creation in ASP.Net Page /XSL Pin
laker_6616-Jan-04 7:27
laker_6616-Jan-04 7:27 

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.