Re: [xml] Linking to an xsl file...



On Wed, Apr 17, 2002 at 06:16:51PM +0200, Antoine Rennuit wrote:
Hello, I built a DOM tree using libxml, and I saved it.
Now I would like to link an xsl file to my xml file so I would like to add
the following line in my xml file :
<?xml:stylesheet type="text/xsl" href="xslfilename.xsl" ?>
How can I do this?

  It's a processing instruction, use xmlNewPI() and add the resulting
node as a previous sibling of the document root.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]