In the general case, the answer is no, there is no such method. In the general
case there isn't even a one-to-one mapping between elements, which you seem to
be assuming.
Of course, if your XSLT stylesheet consists entirely of template rules with a
very simple form, such as
<xsl:template match="employee">
<person>
<xsl:apply-templates/>
</person>
</xsl:template>
then you might be in luck; translating the XPath expression might simply be a
case of renaming the element names.
However,
Michael Kay
Saxonica
mike(_at_)saxonica(_dot_)com
+44 (0) 118 946 5893
On 10 Dec 2014, at 15:27, monia ben brahim
monia(_dot_)benbrahim(_at_)gmail(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
---------- Forwarded message ----------
From: monia ben brahim <monia(_dot_)benbrahim(_at_)gmail(_dot_)com>
Date: 2014-12-09 19:56 GMT+01:00
Subject: Generate Xpath expression over the target xml schema from the xslt
document
To: xsl-list@lists.mulberrytech
Dear
I have a source xml schema, a target xml schema and an xslt document that
expresses mappings between them. In fact, the two schema are semantically
equivalent but have structure heterogeneities. My question is the following:
Having an XPath expression that points to element (s) in the source schema
and having the XSLT document, is there a method to know what is the XPath
expression that points to the corresponding element (s) in the target schema.
Would you please help me!
Best regards
--
Monia BEN BRAHIM Ep BEN BRAHIM
Assistante à l'Institut Supérieur d'Informatique et de Multimédia de Gabès
(ISIMG), Université de Gabès.
Membre du Laboratoire Recherche en Développement et Contrôle des Applications
Distribuées (ReDCAD) à Sfax
Doctorante en Informatique à l'Ecole Nationale des Ingénieurs de Sfax (ENIS),
Université de Sfax
Dotée d'un diplôme d'ingénieur de l'ENIS
--
Monia BEN BRAHIM Ep BEN BRAHIM
Assistante à l'Institut Supérieur d'Informatique et de Multimédia de Gabès
(ISIMG), Université de Gabès.
Membre du Laboratoire Recherche en Développement et Contrôle des Applications
Distribuées (ReDCAD) à Sfax
Doctorante en Informatique à l'Ecole Nationale des Ingénieurs de Sfax (ENIS),
Université de Sfax
Dotée d'un diplôme d'ingénieur de l'ENIS
XSL-List info and archive
EasyUnsubscribe (by email)
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--