Petals SE XSLT

Properties of the incoming message should be passed to the XSL stylesheet as parameter

Details

  • Type: Improvement Request Improvement Request
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 2.3.2
  • Fix Version/s: 2.4
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    An XSL stylesheet is able to use global parameters set when the transformation is invoked.

    Example of XSL with global parameters:

    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:param name="day"></xsl:param>
    <xsl:param name="year"></xsl:param>
    <xsl:param name="weather"></xsl:param>
    
    
    <xsl:template match="/">

    Global parameters are set using javax.xml.transform.Transformer.setParameter(name, value).

    Please add support of global parameters that are defined using the properties of the incoming message as following:

    • property name defines the global parameter name,
    • property value defines the global parameter value.

    Add a new attribute 'overridable' for each xsl-parameter to manage conflict between input properties and xsl-parameter:

    • if true, the input property override the xsl-parameter by the input property, no warning log message
    • if false, a fault is returned
    • default value: false
    Show
    An XSL stylesheet is able to use global parameters set when the transformation is invoked. Example of XSL with global parameters:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:param name="day"></xsl:param>
    <xsl:param name="year"></xsl:param>
    <xsl:param name="weather"></xsl:param>
    
    
    <xsl:template match="/">
    Global parameters are set using javax.xml.transform.Transformer.setParameter(name, value). Please add support of global parameters that are defined using the properties of the incoming message as following:
    • property name defines the global parameter name,
    • property value defines the global parameter value.
    Add a new attribute 'overridable' for each xsl-parameter to manage conflict between input properties and xsl-parameter:
    • if true, the input property override the xsl-parameter by the input property, no warning log message
    • if false, a fault is returned
    • default value: false
  • Environment:
    -

Issue Links

Activity

People

Dates

  • Created:
    Thu, 16 Sep 2010 - 17:56:48 +0200
    Updated:
    Fri, 17 Sep 2010 - 15:52:49 +0200
    Resolved:
    Fri, 17 Sep 2010 - 14:40:46 +0200