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

Re: p:store and <!DOCTYPE ...>

From: Jostein Austvik Jacobsen <josteinaj@gmail.com>
Date: Tue, 12 Oct 2010 12:18:23 +0200
Message-ID: <AANLkTikSY72eaaAyGKPBGj3YED5ssuCpEr7EyiY2zebi@mail.gmail.com>
To: xproc-dev@w3.org
Never mind, figured it out a minute after I asked the question.

Had to add doctype-system as well...

Jostein

2010/10/12 Jostein Austvik Jacobsen <josteinaj@gmail.com>

> 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:inline>
>             <xhtml/>
>         </p:inline>
>     </p:input>
>     <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:store>
>
>     <p:identity>
>         <p:input port="source">
>             <p:pipe port="result" step="storestep"/>
>         </p:input>
>     </p:identity>
> </p:declare-step>
>
>
> 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?
>
> Regards
> Jostein Austvik Jacobsen
>
Received on Tuesday, 12 October 2010 10:19:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 12 October 2010 10:19:16 GMT