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

From
Jirka Kosek <>
Date
2012-05-22T20:26:13+00:00
ID
Thread
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:       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
------------------------------------------------------------------