Of course, it exists a way, for an xml document to define its xslt file. <?xml-stylesheet type="text/xsl" href="/home/user/myFile.xslt"?> <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/home/taben/BeforeLiving/mySchema.xsd"> Here, the xslt file that will be used to transform my xml file is: "/home/user/myFile.xslt".
So, the question is how could we get this information from my xml file? Using of course Xerces-P. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 24, 2002 10:45 PM To: [EMAIL PROTECTED] Subject: Re: How getting the xslt file name from the xml file "BENHAJ-ABDELLATIF,TAHIA (HP-France,ex1)" <[EMAIL PROTECTED]> writes: > I want to know how can I get the name of the xslt file name defined in amy > xml document. Your question isn't completely clear, so if I get it wrong please correct me. You want to locate the name of an XSLT stylesheet that is defined as the processing stylesheet for a given XML document? As far as I know there is no standard way for a document to define the stylesheet it uses. I know that IE uses a special processing instruction, for example. So your solution is going to be completely dependent on your own needs and your application's constraints. jas. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
