- From: George Cristian Bina <george@oxygenxml.com>
- Date: Fri, 15 Feb 2013 06:38:17 +0200
- 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
http://www.w3.org/TR/xslt-21/#element-strip-space
- 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"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Hope this help!
Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
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