[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Passing parameters in XSLT with Java

Subject: Re: Passing parameters in XSLT with Java
From: JBryant@xxxxxxxxx
Date: Thu, 9 Jun 2005 12:48:35 -0500
java passing parameters xsl
Hi, Zak,

You can specify a stylesheet parameter.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:param name="someParam"/>

  <xsl:template match="/">
    <xsl:value-of select="$someParam"/>
  </xsl:template>

</xsl:stylesheet>

Of course, you'll want to do something more interesting than just get the 
text value of the parameter, but this small example shows the syntax 
involved.

If you have a list, you may need to set up a recursive template to process 
the items in the list.

In XSLT 2.0, you have some more options, since you can specify the type of 
the parameter and use other 2.0 features to more readily process the list.

HTH

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




"Zak Nixon" <zaknixon@xxxxxxxxxxxxxxxxx> 
06/09/2005 12:19 PM
Please respond to
xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To
<xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
cc

Subject
 Passing parameters in XSLT with Java






Is there any ways to pass lists of integers
to an XSLT stylesheet and let it work on those 
variables ?

Thx

Zak

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.