This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] Handling documents with Namespaces


All,

I have defined an extension to docbook representing a special purpose 
database, which I merge with a normal docbook document. As long as my 
element was different from the DocBook elements, I had no problems, but 
with the upcoming DTD v. 4.3, I have identifed elements introduced in 4.3, 
so now I am considering using namespace, but how,

AI have experimented quite a bit, but havn't yet figured out so here is a 
simple example. in the form of a XHTML document and and XST stylesheet.

The result is an exact copy of the input document? 

Apparently the template for P is considered belonging to a different 
namespace than all the elements in the document.

It will work if I e.g. define a prefix for the xhtml namespace, and add 
this prefix on each template

   <xsl:template match="xhtml:p">
     ...

There got to be a better way ?


Regards,

Jens





To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]