Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
Generalstatusbar UI Pin
osto8-Feb-04 18:09
osto8-Feb-04 18:09 
GeneralRe: statusbar UI Pin
Heath Stewart8-Feb-04 19:42
protectorHeath Stewart8-Feb-04 19:42 
Generalread and edit xsl in c# Pin
Inam8-Feb-04 18:01
Inam8-Feb-04 18:01 
GeneralRe: read and edit xsl in c# Pin
Heath Stewart8-Feb-04 19:34
protectorHeath Stewart8-Feb-04 19:34 
GeneralRe: read and edit xsl in c# Pin
Inam8-Feb-04 20:03
Inam8-Feb-04 20:03 
GeneralRe: read and edit xsl in c# Pin
Heath Stewart8-Feb-04 20:09
protectorHeath Stewart8-Feb-04 20:09 
GeneralRe: read and edit xsl in c# Pin
Inam8-Feb-04 20:33
Inam8-Feb-04 20:33 
GeneralRe: read and edit xsl in c# Pin
Heath Stewart9-Feb-04 1:25
protectorHeath Stewart9-Feb-04 1:25 
XSL (deprecated) and XSLT are just XML documents implementing a certain schema. What I said before applies but how you do it completely depends on what content the transform produces. If you are transforming to HTML, then you need to either add a style attribute to whatever element will be output with the color: color; value. If you're transforming to something else, you'll need to change the color appropriately.

And no, I don't agree that using an XmlTextWriter is the right way to do, especially when you clearly have no experience using them. Simply load the XSL document into an instance of an XmlDocument and make your changes to the DOM there. You can then save this XML document to a stream, be it a file stream, memory stream, or whatever. Apply this transform then to your XML document using an XslTransform.

Again, be sure to read the relevent sections of the .NET Framework so you understand what you're doing and not just guessing and relying on IntelliSense. See Employing XML in the .NET Framework[^] for a lot of discussion on the topic, as well as examples and links to the class library documentation.

 

Microsoft MVP, Visual C#
My Articles
GeneralOn Ref and Value Types Pin
GetOn&GetGoing8-Feb-04 17:33
GetOn&GetGoing8-Feb-04 17:33 
GeneralRe: On Ref and Value Types Pin
Nick Parker8-Feb-04 18:28
protectorNick Parker8-Feb-04 18:28 
GeneralC# Does Shell, Arik Poznanski Pin
Christopher_S8-Feb-04 15:18
Christopher_S8-Feb-04 15:18 
GeneralRe: C# Does Shell, Arik Poznanski Pin
David Stone8-Feb-04 17:14
sitebuilderDavid Stone8-Feb-04 17:14 
GeneralRe: C# Does Shell, Arik Poznanski Pin
Christopher_S8-Feb-04 17:31
Christopher_S8-Feb-04 17:31 
GeneralRe: C# Does Shell, Arik Poznanski Pin
Heath Stewart8-Feb-04 19:30
protectorHeath Stewart8-Feb-04 19:30 
QuestionHow to monitor the request of IIS? Pin
EastDragon8-Feb-04 14:59
EastDragon8-Feb-04 14:59 
AnswerRe: How to monitor the request of IIS? Pin
Heath Stewart8-Feb-04 19:26
protectorHeath Stewart8-Feb-04 19:26 
GeneralWindows Address Book Pin
Anonymous8-Feb-04 12:04
Anonymous8-Feb-04 12:04 
GeneralRe: Windows Address Book Pin
Heath Stewart8-Feb-04 19:20
protectorHeath Stewart8-Feb-04 19:20 
GeneralRe: Windows Address Book Pin
Anonymous9-Feb-04 2:54
Anonymous9-Feb-04 2:54 
GeneralRe: Windows Address Book Pin
Heath Stewart9-Feb-04 3:25
protectorHeath Stewart9-Feb-04 3:25 
GeneralAdvice on editable datagrid Pin
Andrlage8-Feb-04 11:20
Andrlage8-Feb-04 11:20 
GeneralRe: Advice on editable datagrid Pin
Nick Parker8-Feb-04 11:32
protectorNick Parker8-Feb-04 11:32 
GeneralAutoScrolling TextBoxes Pin
ZigmaT8-Feb-04 10:51
ZigmaT8-Feb-04 10:51 
GeneralRe: AutoScrolling TextBoxes Pin
Heath Stewart8-Feb-04 19:04
protectorHeath Stewart8-Feb-04 19:04 
GeneralRe: AutoScrolling TextBoxes Pin
ZigmaT9-Feb-04 8:32
ZigmaT9-Feb-04 8:32 

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.