James,
At 11:40 AM 10/7/2003, you wrote:
I have:
1) An xsl (first.xsl) which selects and copies elements from an xml doc
(first.xml) to create a resulting xml doc(second.xml)
2) An xsl (second.xsl) which performs a transformation on the second.xml
to create a web page (html tags)
is there any way to incldue the first transformation at the top of
second.xsl file. I thought about using import or include but didnt think
it was appropriate?
Nope, xsl:include and xsl:import won't work here since you are not
combining the stylesheets, you are chaining them. (The result of the first
serves as input to the second.)
Using the node-set extension function, you can create the functional
equivalent of this *if* your two stylesheets' templates don't clash. (Modes
are your friends.)
Or many processing environments provide other means of specifying that two
transforms are to be pipelined like this. XSLT itself doesn't specify how
this should be done.
Check your processor's docs.
Cheers,
Wendell
======================================================================
Wendell Piez
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list