Re: towards consensus on fixup, part 2

Henri,

Thanks for the reminder

It enlighten that serializing the document at each step need to keep
some Doctype information, isn'it ?

Mohamed

On 9/7/07, Henry S. Thompson <ht@inf.ed.ac.uk> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Innovimax SARL writes:
>
> > What does [attribute type] means ?
>
> It's a property of Attribute Information Items [1], which tells you
> what, if anything, is known about the XML 1.0/XML 1.1 type of the
> attribute, that is, CDATA, NMTOKEN, ID, IDREF, etc.  Would you like
> the following pipeline to work?
>
>  <p:pipeline>
>
>   <p:identity/>
>
>   <p:xslt>
>    <p:input port="stylesheet">
>     <p:inline>
>      <xsl:stylesheet>
>       . . .
>       <xsl:template match="ref">
>        <a href="#{@secid}>
>         <xsl:value-of select="id(@secid)/title"/>
>        </a>
>       </xsl:template>
>       . . .
>    </p:xslt>
>   </p:pipeline>
>
> on input such as
>
>  <!DOCTYPE doc [
>  . . .
>  <!ATTLIST sec myid ID #REQUIRED>
>  . . .
>  ]>
>  <doc>
>   . . .
>   <ref secid="s3"/>
>   . . .
>   <sec myid="s3">
>     <title>Future work</title>
>  . . .
>  </doc>
>
> If the type of attributes isn't preserved, that pipeline won't work as
> you (I think) and I (I know) would like and expect.
>
> ht
>
> [1] http://www.w3.org/TR/2004/REC-xml-infoset-20040204/#infoitem.attribute
> - --
>  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
>                      Half-time member of W3C Team
>     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
>             Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
>                    URL: http://www.ltg.ed.ac.uk/~ht/
> [mail really from me _always_ has this .sig -- mail without it is forged spam]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (GNU/Linux)
>
> iD8DBQFG4VPJkjnJixAXWBoRAi6ZAJ0amthW1z8HcwnwXvO1RniLdf7BpACfWstx
> jjp2g05UBoEh3ExePKb1YlQ=
> =Er+7
> -----END PGP SIGNATURE-----
>


-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 €

Received on Friday, 7 September 2007 14:32:00 UTC