Class PromptXSLTransform

  • All Implemented Interfaces:
    EnumPromptsBeanEvents, Transform

    public class PromptXSLTransform
    extends AbstractPromptObjectTransform

    The PromptXSLTransform delegates generation of the HTML of a prompt to an external xsl transformation. The name of the xsl file to use is specified through the xslFileName Formal Paramter.

    Since:
    MicroStrategy Web 7.3.1 or earlier
    • Field Detail

      • xslFileName

        public FormalParameter xslFileName
        Specifies the name of the xsl file to use. If the value is empty (default) it will use the name of the file as defined in the prompt's PSXSL extended property or will just default to some xsl based on the prompts type.
        Since:
        MicroStrategy Web 8.0.0
    • Constructor Detail

      • PromptXSLTransform

        public PromptXSLTransform()
        Default no-args constructor.
        Initialize all Formal Parameters.
    • Method Detail

      • getPromptXmlDocument

        protected org.w3c.dom.Document getPromptXmlDocument()
                                                     throws XMLSupportException
        Returns XML Document denoting prompt in given Document.
        Returns:
        Document instance if XML is parsed properly.
        Throws:
        XMLSupportException - if error is thrown when getting XML.
        Since:
        MicroStrategy Web 8.0.0
      • getXslDocument

        protected org.w3c.dom.Document getXslDocument()
        Returns instance of Document from ResourceCacheManager object.
        It used current XSL file name in order to get XSL Document object.
        Returns:
        Document instance
        Since:
        MicroStrategy Web 8.0.0
      • getXslFileName

        protected java.lang.String getXslFileName()
        Indicates name of the XSL file to be read.
        Returns:
        String file name.
        Since:
        MicroStrategy Web 8.0.0
      • getDefaultXslFileName

        protected java.lang.String getDefaultXslFileName​(WebPrompt prompt)
        Returns the DefaultStyle names to use to render a prompt based on its type.
        This correspond to the same default values used in Microstrategy 7i.
        Parameters:
        prompt - WebPrompt instance whose type will determine XSL style name.
        Returns:
        String text indicating XSL file name.
        Since:
        MicroStrategy Web 8.0.0
      • getDescription

        public java.lang.String getDescription()
        Indicates prompts transform description.
        Returns:
        String full description.
      • getStyleXsl

        @Deprecated
        protected java.lang.String getStyleXsl​(WebPrompt prompt)
        Deprecated.
        use getXslFileName() instead
        Returns the name of the xsl file to use for this prompt.
        Parameters:
        prompt - WebPrompt the prompt
        Returns:
        String the name of the xsl file to use.