W3C home > Mailing lists > Public > xproc-dev@w3.org > February 2013

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

From: George Cristian Bina <george@oxygenxml.com>
Date: Fri, 15 Feb 2013 06:38:17 +0200
Message-ID: <511DBBB9.9030307@oxygenxml.com>
To: Mark Wilson <mark@knihtisk.org>
CC: xproc-dev@w3.org
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="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
> 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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:10 UTC