Re: towards consensus on fixup, part 2

-----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-----

Received on Friday, 7 September 2007 13:36:16 UTC