linking xml document to xsl stylesheet in C

U

UndoMiel

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!
 
K

Keith M. Corbett

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
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top