Attributes with Intent (and namespaces)

David Megginson david at megginson.com
Tue Jul 7 03:35:56 BST 1998


G. Ken Holman writes:

 > When I write my stylesheets, then, will I have to write the following?
 > 
 > (a) namespace aware for element:  <mycompany:para>
 > 
 > <rule>
 >     <target-element type='www.company.com/para'/>
 >     <paragraph
 >         space-before='10pt'>
 >         <children/>
 >     </paragraph>
 > </rule>

No -- or at least, I imagine not.  There are two more interesting
solutions:

1. Use something similar to DSSSL modes, one for each namespace:

<namespace ns="www.company.com/para">
 <rule>
  <target-element type="para"/>
  <paragraph
    space-before='10pt'>
    <children/>
  </paragraph>
 </rule>
 <rule>
  [...]
 </rule>
 [...]
</namespace>

2. Associate a separate stylesheet with each namespace, through some
   mechanism yet to be determined.


All the best,


David

-- 
David Megginson                 david at megginson.com
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list