Re: XProc step fails to execute two <xsl> statements. Why?

Hi Mark,

They both work, but:
- the xsl:strip-space refers to the source, not to the output

- the p:xslt result is read by the p:store step (thus you loose the 
DOCTYPE declaration as that is not part of the data model) and it is 
serialized at the provided location. To specify a DOCTYPE you should use 
the doctype-public and doctype-system options on the p:store step:

<p:store doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"

Hope this help!

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

On 2/15/13 1:45 AM, Mark Wilson wrote:
> Hello,
> Can someone help, please?
> My XProc stylesheet runs and produces almost correct output, but two of
> the statements in my XSLT stylesheet produce no results in the output
> (.htm) document: <xsl:output> and <xsl:strip-space>. They are called as:
> <xsl:output method="html" indent="yes"
> doctype-system=""
> doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
> and
> <xsl:strip-space elements="*"/>
> Neither seem to be observed in the output file. What am I not
> understanding? The stylesheet works correctly when called in a batch file.
> My step is:
> <p:xslt name="htm-generator">
>              <p:input port="source"/>
>              <p:input port="stylesheet">
>                  <p:document href="../xslt/14CatalogsToHTML.xsl"/>
>              </p:input>
>              <p:input port="parameters">
>                  <p:empty/>
>              </p:input>
>          </p:xslt>
>          <p:store>
>              <p:with-option name="href" select="concat('work/htm',
> substring-before(substring-after(base-uri(*), 'work'), '.'), '.htm')"/>
>          </p:store>
> Mark

Received on Friday, 15 February 2013 04:38:46 UTC