linking xml document to xsl stylesheet in C

UndoMiel

Usenet Archive
Joined
Jul 31, 2004
Messages
7
Reaction score
0
Hello,

I have created an XML document using the libxml2 library in C.

Now I've created an xsl style sheet to transform the XML document into a nice, readable html page.

To link the XML document to the xsl style sheet, the XML document needs the following line:

<?xml-stylesheet href="example.xsl" type="text/xsl"?>

My question: how do I create that line using the libxml2 library? or is this even possible?

Thanks!
 

Keith M. Corbett

Usenet Archive
Joined
Mar 13, 2001
Messages
50
Reaction score
0
UndoMiel said:
To link the XML document to the xsl style sheet, the XML document needs the following line:

<?xml-stylesheet href="example.xsl" type="text/xsl"?>

My question: how do I create that line using the libxml2 library? or is this even possible?

Create a "processing instruction".

/kmc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top