XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
David ChanSubject: Merge two xsl to one
Author: David Chan
Date: 19 Jan 2006 12:02 PM
Hi all,

I have one xsl with <xsl:output method="xml" indent="yes"/>
and other is <xsl:output method="html" encoding="ISO-8859-1"/>

can I Merge this two one? and their source are the same.
Actually one is calling java extension and others is output a HTML

Regards
Dave

Posttop
Tony LavinioSubject: Merge two xsl to one
Author: Tony Lavinio
Date: 19 Jan 2006 12:33 PM
If I understand your question, you have two XSL files that are
identical except for the xsl:output lines, and you'd like to have
just one.

There are several options.

The first obstacle is that the method= and encoding= aren't AVTs,
so you can't put parameters in there.

If you are using an engine such as Saxon or Xalan that supports
multiple outputs, you could use something like xsl:result-document
and have your template match="/" first run the rest of the stylesheet
using the input document with the first method=/encoding=, and then
again with the second value.

Does this help? What processor are you using? And are you running
them through Stylus Studio?

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.