[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook] literal element db v5
Dave, role is a valid attribute on literal and is a common attribute. I think the confusion is in the way it is defined in the schema. While it is a common attribute, it is not defined in db.common.attributes. Instead, it is defined using a separate name for each element (that's why you have db.literal.role.attribute). Since role is user-defined, creating separate names for each element lets customizers define the contents of role independently for different elements. So, it's a common attribute by virtue of being common, but is defined separate from db.common.attributes so that it can be customized. BTW, literal is probably as close as you'll get for a generic replacement for monospace. Hope that helps. Dick Hamilton --------------------------------- XML Press XML for Technical Communicators http://xmlpress.net (970) 231-3624 > -----Original Message----- > From: Dave Pawson [mailto:davep@dpawson.co.uk] > Sent: Friday, September 04, 2009 6:14 AM > To: docbook > Subject: [docbook] literal element db v5 > > > I'm transforming from a 'visual' markup language (a wiki) > and I've come across 'monospace' as markup. > > My best guess docbook 5 equivalent would be literal. > In order to not lose the semantics, I want looking > for the role attribute. literal has common > attributes, but role isn't one of them? > > yet in the xi schema I see > <define name="db.literal.role.attribute"> > <attribute name="role"/> > </define> > <define name="db.literal.attlist"> > <interleave> > <optional> > <ref name="db.literal.role.attribute"/> > </optional> > <ref name="db.common.attributes"/> > <ref name="db.common.linking.attributes"/> > </interleave> > </define> > <define name="db.literal"> > <element name="literal"> > <a:documentation>Inline text that is some literal > value</a:documentation> > <ref name="db.literal.attlist"/> > <ref name="db._text"/> > </element> > > Is this a docbook omission? > > regards > > > > -- > Dave Pawson > XSLT XSL-FO FAQ. > http://www.dpawson.co.uk > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-help@lists.oasis-open.org > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]