EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Stylesheet in xml document

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#17381
Posted: 08/30/2011 09:54:46
by Gianni Di Pietrantonio (Standard support level)
Joined: 07/27/2011
Posts: 7

I need to add StyleSheet informations into new xml documents created with TElXMLDOMDocument class.
...
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="index.xsl"?>
......

It is possible to do this?
best regards
#17385
Posted: 08/30/2011 12:47:04
by Dmytro Bogatskyy (EldoS Corp.)

Quote
I need to add StyleSheet informations into new xml documents created with TElXMLDOMDocument class.

You need to add a ProcessingInstruction node into a document, to do this please use a following code:
Code
  FXMLDocument.InsertBefore(FXMLDocument.CreateProcessingInstruction(' ', 'xml-stylesheet type="text/xsl" href="index.xsl"'), FXMLDocument.FirstChild);

Reply

Statistics

Topic viewed 429 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!