OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

dita message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [dita] DITA and Namespaces? A Potential Compromise Solution for DITA 1.3?


On 22.5.2012 21:56, Eliot Kimber wrote:

> I guess I'd rather have a more compact syntax at the cost of a little
> processing. Moore's law continues to hold but verbose syntax is always
> verbose.

Maybe I missed something, but this "little processing" would mean that
for each @class attribute you would need to:

1. Find all "DITA namespace declarations" (dita_ns:* attributes) which
are in scope

2. Based on this replace prefixes in @class attribute by corresponding
namespace URI

3. Do a match on replaced @class with namespace URI + original element
name after :

This is actually quite complex thing to do. In XSLT 2.0 you can create
user defined function to do this and use it for template matching. But I
can't imagine how to do this in XSLT 1.0.

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]