[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Determining the extension of the output file?

Subject: Determining the extension of the output file?
From: Esther Parrilla Endrino <esther.parrilla@xxxxxxxxxxxxxxxx>
Date: Wed, 05 Mar 2003 15:38:40 +0100
xmlsavefile
Hello all,

I am doing a very simple example that transforms an XML file into and HTML file after applying and XSL using libxml2 and libxslt.
I use the xmlSaveFile() function to save to disk the output HTML file.
For that I put in my code:
...
res = xsltApplyStylesheet(cur, doc, params)
xmlSaveFile("output.html", res);
...


But my problem is that sometimes I am going to use an XSL that shall transform the XML to HTML and sometimes I shall use other XSL that shall transform the XML to another different XML... and I would like to call my output file output.html or output.xml depending on the type of XSL I apply.

So I have thought that when I am parsing my XSL with the function xsltParseStylesheetFile() I should try to determine if there is an <html...> tag in the XSL or and <xml...>. I have been looking for a function in the libxslt API that can di this for mi but I haven´t found any :( ...

Does anybody knows if there is a function in the libxslt API that can do that?
Should I look in the libxml2 API instead?


Thanks in advance!

esther

--

Esther Parrilla Endrino
Ground Segment Systems Division
DEIMOS SPACE S.L.
e-mail: esther.parrilla@xxxxxxxxxxxxxxxx
tel:  	00 34 91 806 34 57

~ Code matters more than comercials ~

--



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.