W3C home > Mailing lists > Public > xproc-dev@w3.org > October 2010

RE: store and <!DOCTYPE ...>

From: <vojtech.toman@emc.com>
Date: Tue, 12 Oct 2010 06:19:52 -0400
Message-ID: <997C307BEB90984EBE935699389EC41C026A5A9A@CORPUSMX70C.corp.emc.com>
To: <xproc-dev@w3.org>
What you see is actually correct. The XSLT 2.0 and XQuery 1.0 Serialization specification explicitly says that:


“The doctype-public parameter MUST be ignored unless the doctype-system parameter is specified.”


Hope this helps.





Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group


From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] On Behalf Of Jostein Austvik Jacobsen
Sent: Tuesday, October 12, 2010 12:15 PM
To: xproc-dev@w3.org
Subject: p:store and <!DOCTYPE ...>


I'm trying to p:store some XML with a doctype declaration. To demonstrate, this is the essence of what I've got:



<?xml version="1.0" encoding="UTF-8"?>

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"

    xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0">

    <p:input port="source">





    <p:output port="result"/>


    <p:store name="storestep">

        <p:with-option name="href" select="resolve-uri('/home/jostein/Skrivebord/testoutput.xml')"/>

        <p:with-option name="doctype-public" select="'-//W3C//DTD XHTML 1.0 Transitional//EN'"/>




        <p:input port="source">

            <p:pipe port="result" step="storestep"/>






This gives:



<xhtml xmlns:c="http://www.w3.org/ns/xproc-step"/>



...but no doctype declaration... How can I get a doctype declaration in my output?



Jostein Austvik Jacobsen

Received on Tuesday, 12 October 2010 10:22:21 UTC

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