Each XSLT stylesheet run in the GENE environment receives these parameters when wrapped in XsltExporterBase class:
xmlns:gpar="dom://baka.sk/xml/gene/param" <xsl:param name="gpar:isRoot" select="true()"/> <xsl:param name="gpar:parentNs"/> <xsl:param name="gpar:documentName"/> <xsl:param name="gpar:documentExtension"/> <xsl:param name="gpar:documentDir"/> <xsl:param name="gpar:resultName"/> <xsl:param name="gpar:resultExtension"/> <xsl:param name="gpar:resultDir"/> <xsl:param name="gpar:processingSource" select="true()"/>
Parameter | Type | Description |
isRoot | boolean | Determines whether the stylesheet is processing the root nametree - the nametree that contains root element of the document. |
parentNs | string | If this nametree is not root then this parameter contains namespace of the parent nametree, otherwise it is not defined. |
documentName | string | Denotes a string representing the name of the source document. It does not contain path to the document nor the document extension. |
documentExtension | string | Denotes a string representing the extension of the document being transformed. The string is empty if the source XML file has no extension. If there is an extension, its first character is a dot. |
documentDir | string | Denotes a string representing directory where the document is stored. URI address, always ending with '/'. |
resultName | string | Denotes a string representing the name of the output file that has been given as a parameter to the transformer. The file extension (the character string that terminate the file name, after a dot) is not part of that string, nor is the path to the file. Empty string if transforming for an on-screen renderer. |
resultExtension | string | Denotes a string representing the extension of the document being transformed. The string is empty if the output file name has no extension, or if the transformer feeds on-screen renderer. If there is an extension, its first character is a dot. Empty string if transforming for an on-screen renderer. |
resultDir | string | Denotes a string representing directory where the result document. URI address, always ending with '/'. |
processingSource | boolean | processingSourceIf true then the source of this exporter is the source document. If false then we are processing an output of another exporter. |