[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Extend/modify DocBook Schema?


docbook schema
Hello,

I used a modified version of DocBook for an API documentation effort,
adding programmer, maintainer, and packagename to methodsynopsis. 
I was working from the 4.2 DocBook DTD (docbookx.dtd,v 1.13 2002/07/17)
and I followed the examples in the online documentation. [1]

Now I'd like to prepare to try this with the Office 11 Beta (whenever it 
arrives), and need to implement my customization layer in WXS. I had 
changed the order of elements in methodsynopsis by putting 
packagename right before methodname, and by adding a language
attribute.  (I also added some names to the end of the content model, but
I don't think they're a big problem.) I've appended a snippet of the XML. 
[2]

I'm very new to WXS, and based on the reading I've done so far, I don't 
think I can support the existing API XML documents with my custom DTD 
and with a customized Schema, because I don't see how I can change 
the order of elements in methodsynopsis to insert my packagename.

Is there a way to customize the DocBook Schema through a customization
layer as I did for the DTD? Or should I change the XML to match a content 
model that I can support  using import? Am I overlooking namespace issues 
that can make this easier (or more difficult)?

 TIA,

 Joe


[1] Customizing DocBook http://www.docbook.org/tdg/en/html/ch05.html

[2]
<methodsynopsis language="PL/SQL">
   <void/>
   <packagename>header_link_footer</packagename>
   <methodname>FOOTER</methodname>
   <methodparam>
       <type>varchar2</type>
       <parameter>screen_level</parameter>
   </methodparam>
   <programmer>
       <personname>
           <firstname>Joe</firstname>
           <surname>Gilvary</surname>
       </personname>
   </programmer>
   <maintainer>
       <personname>
       <firstname>Joe</firstname>
       <surname>Gilvary</surname>
       </personname>
   </maintainer>
</methodsynopsis>

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.