This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

xsl:output question



In order to control the output format from an xsl processor (xalan 1.1),
I attempted to set PARAM display="'format_type'" on command line, where
format_type is either of xml, text or html.

Is there any way to dynamically format xsl:output format and have
one style sheet control the result tree format? I tried having
<xsl:output method="xml"|"text"|"html" >, and I hoped to have the
right output if it is within <out> .. </out>. In stead, I get output
in text always.

My input.xml is of the format:

<customer name="a"
   contact-phone="blah"
   contact-person="john"
   revenue="blah"

   <location city="nyc" revenue="blah" />
   <location city="london" revenue="blah" />

   <customer name="b"
      contact-phone="asdf"
      contact-name="sadf"
      revenue="234" />

</customer>


Thanks!
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]