Wednesday, 15 February 2012

Is it possible to apply imported xslt to part of xml? -



Is it possible to apply imported xslt to part of xml? -

is possible apply imported xslt part of xml?

for illustration have follofing file

<full> <parts> <part>{more elements here}<part> <part>{more elements here}<part> <part>{more elements here}<part> </parts> </full>

and have xslt used extract info structure. when applies whole xml extracts values. possible apply on each part separately? i've tried utilize haven't succeed

upd: seek clarify question commonly have process xml <part>{more elements here}<part> , have infrastructure such xml. have variables.xslt extract mutual fields imported in other more specific transformations. need process composite xml , long variables.xslt contains relative xpaths approach not works composite xml. i'm trying find way how can apply variables.xslt part of composite.xml

the importing stylesheet can e.g.

<xsl:template match="/"> <xsl:apply-templates select="(full/parts/part)[1]"/> </xsl:template>

to instance apply templates first part grand kid of full element. need show more details if need more concrete help.

xml xslt

No comments:

Post a Comment