How to point the root of the resulting tree of a transform? 2003-01-03 - By David Marston/Cambridge/IBM
>I want to make a transformation in 2 pass. In the first pass, I >construct a tree from an XML file using a part of the XSL file.
It appears that by "2 pass" you mean that you have two separate stylesheets, as opposed to using modes in one stylesheet.
>In the second pass, I want to transform the tree builded in the first >pass using another <xsl:apply-templates select=? /> but I don't know >to "point" the root node of the constructed tree to make this second >transform....
If the second transform is called by passing it the second stylesheet and the tree to be transformed (output of first transform), then in the second stylesheet, you could just use <xsl:apply-templates select="/" /> to start at the root of that tree, because that is the tree that the second stylesheet was given to process.
If that doesn't answer the question, write back to the list, showing us how you invoke each of the two transforms. .................David Marston
|
|