Validating XSLT stylesheet with Java system-property
Posted: Tue Nov 12, 2013 6:20 pm
Hi!
I am developing multiple DITA-OT plug-ins for outputting PDF files.
Today I realized that there are templates that are used commonly in several plug-ins.
Most of the code are the same. However there are some interface changes between plug-ins.
I want to make a new common plug-in that have common templates for all plug-ins.
To do so I *MUST* write the following code in the common template.
I do want to use the same calling interface for all plug-ins. But it is difficult because we must correct so many codes. So I decided to write as previous.
But oXygen reports validation error for one of above two instructions. I noticed that oXygen validation scenario cannot set the Java system-property.
Are there any solutions to validate this code normally?
If I invoke DITA-OT using this code setting Java sysproperty in ant build.xml, it finishes normally.
Regards,
I am developing multiple DITA-OT plug-ins for outputting PDF files.
Today I realized that there are templates that are used commonly in several plug-ins.
Most of the code are the same. However there are some interface changes between plug-ins.
I want to make a new common plug-in that have common templates for all plug-ins.
To do so I *MUST* write the following code in the common template.
Code: Select all
<xsl:variable name="isConditional" as="xs:boolean" select="ahf:isConditionalWoUkUs($row)" use-when="not(system-property('is.print.pdf') eq 'yes')"/>
<xsl:variable name="isConditional" as="xs:boolean" use-when="system-property('is.print.pdf') eq 'yes'">
<xsl:call-template name="ahf:isConditionalWoUkUs">
<xsl:with-param name="prmElem" select="$row"/>
</xsl:call-template>
</xsl:variable>
But oXygen reports validation error for one of above two instructions. I noticed that oXygen validation scenario cannot set the Java system-property.
Are there any solutions to validate this code normally?
If I invoke DITA-OT using this code setting Java sysproperty in ant build.xml, it finishes normally.
Code: Select all
<sysproperty key="is.print.pdf" value="yes"/>