OASIS DocBook TC2

 View Only
  • 1.  Re: [docbook-tc] Re: RFE 3107140

    Posted 06-16-2011 16:02
    Hi Dave, I get what you want to do, and support it for accessibility reasons. I'm not sure about how to represent it in a content model, though. The current content model of acronym is mixed content of text and inlines. If <expansion> were added as a child element, it would fall into that bag of inlines in the mixed content, but it isn't necessarily meant to be part of that displayed content. I don't think the schema syntax allows specifying a content model that consists of an optional expansion element followed by mixed content, does it? And I don't think using an attribute on acronym is appropriate either, since it is displayable text that might need its own child elements (trademark, etc.). So it seems just adding <expansion> to the existing mix would have to be done, with the explanation that its location in the content is arbitrary and it may or may not be output, which seems a bit awkward. What do you think? Bob Stayton Sagehill Enterprises bobs@sagehill.net


  • 2.  Re: [docbook-tc] Re: RFE 3107140

    Posted 06-16-2011 16:15
    On 16 June 2011 17:02, Bob Stayton <bobs@sagehill.net> wrote: > Hi Dave, > I get what you want to do, and support it for accessibility reasons.  I'm > not sure about how to represent it in a content model, though. The current > content model of acronym is mixed content of text and inlines.  If > <expansion> were added as a child element, it would fall into that bag of > inlines in the mixed content, but it isn't necessarily meant to be part of > that displayed content. I don't think the schema syntax allows specifying a > content model that consists of an optional expansion element followed by > mixed content, does it?  And I don't think using an attribute on acronym is > appropriate either, since it is displayable text that might need its own > child elements (trademark, etc.). Is that the issue? Note I said that access software needs to get at it, not necessarily for normal viewing? E.g. (My syntax) blah blah blah <acronym>RNIB</acronym> Royal National Institute for the Blind blah blah would be first use, then later <acronym sayas="Royal National Institute for the Blind">RNIB</acronym> would work for me, but how to get that into html for the current speech synth engines? I'll investigate that aspect. Either an attribute, or an inline element would suffice? regards  So it seems just adding <expansion> to > the existing mix would have to be done, with the explanation that its > location in the content is arbitrary and it may or may not be output, which > seems a bit awkward.  What do you think? > > Bob Stayton > Sagehill Enterprises > bobs@sagehill.net > > >


  • 3.  Re: [docbook-tc] Re: RFE 3107140

    Posted 06-16-2011 17:55
    An attribute would be tricky, since I can imagine a case where the expansion might have to be translated. Nancy On Thu, Jun 16, 2011 at 12:14 PM, Dave Pawson < dave.pawson@gmail.com > wrote: On 16 June 2011 17:02, Bob Stayton < bobs@sagehill.net > wrote: > Hi Dave, > I get what you want to do, and support it for accessibility reasons.  I'm > not sure about how to represent it in a content model, though. The current > content model of acronym is mixed content of text and inlines.  If > <expansion> were added as a child element, it would fall into that bag of > inlines in the mixed content, but it isn't necessarily meant to be part of > that displayed content. I don't think the schema syntax allows specifying a > content model that consists of an optional expansion element followed by > mixed content, does it?  And I don't think using an attribute on acronym is > appropriate either, since it is displayable text that might need its own > child elements (trademark, etc.). Is that the issue? Note I said that access software needs to get at it, not necessarily for normal viewing? E.g. (My syntax) blah blah blah <acronym>RNIB</acronym> Royal National Institute for the Blind blah blah would be first use, then later <acronym sayas="Royal National Institute for the Blind">RNIB</acronym> would work for me, but how to get that into html for the current speech synth engines? I'll investigate that aspect. Either an attribute, or an inline element would suffice? regards   So it seems just adding <expansion> to > the existing mix would have to be done, with the explanation that its > location in the content is arbitrary and it may or may not be output, which > seems a bit awkward.  What do you think? > > Bob Stayton > Sagehill Enterprises > bobs@sagehill.net > > >


  • 4.  Re: [docbook-tc] Re: RFE 3107140

    Posted 06-16-2011 16:19
    http://www.w3.org/TR/2010/NOTE-WCAG20-TECHS-20101014/H28.html <p>Sugar is commonly sold in 5 <abbr title="pound">lb.<abbr> bags.</p> <p>Welcome to the <abbr title="World Wide Web">WWW</abbr>!</p> I think that works from an attribute? <acronym expansion='World Wide Web'>WWW</acronym> through to <abbr title="World Wide Web">WWW</abbr> @expansion is my example, could be title... though that sounds wrong. HTH -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk