[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Xalan - Stylesheet included using setInclude can't see
>From: Damon Horrell <dhorrell@xxxxxxxxxxx> >To: "'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx> >Subject: Xalan - Stylesheet included using setInclude can't see other temp > lates >Date: Thu, 30 May 2002 09:14:10 +1200 > >This question refers to Xalan-Java 2. > >I am trying to include an additional xsl stylesheet into a stylesheet that >is already being processed by using >stylesheet.setInclude(myStylesheet); > >I am calling recompose on each of the templates in my new stylesheet. > >This works except that I am not able to call templates in the original >stylesheet as it can't find them. > >Does anyone know how I can force it to recognise these? I want to end up >with a single stylesheet being processed but need to include part of it >dynamically after the first part has already been read in. > >The main stylesheet is read in using TransformerFactory.newTemplates which >seems to resolve all the includes etc at the time it is read in. I just >want to add an additional xsl:include after that but have it behave the same >as any normal one. > >If I use <xsl:include> in my new stylesheet to include the templates that I >want then they end up being duplicated and this causes a problem too. > >Is anyone able to help? > >Thanks, >Damon XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|