thanks for that idea--now I have my Examples in the Examples section mapped to 
<section role="example"> 
and my Outputs mapped to 
<example role="output"> 

and the doc is validating. I wasn't thinking of an 'example' in the right way.

much thanks,
--Tim


> -----Original Message-----
> From: Bob Stayton [mailto:[email protected]]
> Sent: Wednesday, July 08, 2009 1:15 PM
> To: Tim Arnold; [email protected]
> Subject: Re: [docbook] customize xslt or customize the schema?
> 
> Hi,
> Why not map your Output element to <example role="Output">, and not use
> <figure> in it at all?  In DocBook 5, figure and example have the same
> content model.
> 
> Bob Stayton
> Sagehill Enterprises
> [email protected]
> 
> 
> ----- Original Message -----
> From: "Tim Arnold" <[email protected]>
> To: <[email protected]>
> Sent: Wednesday, July 08, 2009 10:02 AM
> Subject: RE: [docbook] customize xslt or customize the schema?
> 
> 
> Hi Dick,
> I'd rather customize the stylesheet too, but now that I'm actually trying to
> validate, I get this from the oNVDL validator:
> 
> error: assertion failed:
>   figure must not occur in the descendants of example
> 
> So I guess I'm going to *have* to customize the schema since my 'Output'
> always occurs in examples.
> 
> rats.
> 
> thanks,
> --Tim
> 
> > -----Original Message-----
> > From: Dick Hamilton [mailto:[email protected]]
> > Sent: Tuesday, July 07, 2009 5:41 PM
> > To: Tim Arnold; [email protected]
> > Subject: RE: [docbook] customize xslt or customize the schema?
> >
> > Tim,
> >
> > To the extent that I understand what you are trying
> > to do, I think I'd go with customizing the stylesheet.
> > I prefer not to mess with the schema unless I have to.
> >
> > Dick Hamilton
> > ---------------------------------
> > XML Press
> > XML for Technical Communicators
> > http://xmlpress.net
> > (970) 231-3624
> >
> >
> > > -----Original Message-----
> > > From: Tim Arnold [mailto:[email protected]]
> > > Sent: Thursday, July 02, 2009 11:36 AM
> > > To: [email protected]
> > > Subject: [docbook] customize xslt or customize the schema?
> > >
> > >
> > > Hi, I'm trying to decide how best to solve a problem I have
> > > with some tech documentation.
> > > The doc is originally in LaTeX and I'm converting to DocBook
> > > 5 (using plasTeX). The doc contains both Figure and 'Output'
> > > elements.
> > > When rendered, a Figure is numbered as chapter.figure
> > >
> > > The 'Output' element is like a  Figure, but appears only in
> > > Examples, and is numbered as chapter.example.output
> > >
> > > There are of course references to both Figures and Outputs.
> > >
> > > Which way should I go for this situation--add a new element
> > > by customizing the schema or customize the xsl stylesheets to
> > > use different numbering and gentext? I can differentiate
> > > between the two with xpath. (something like this:
> > > chapter//figure versus chapter/example/fig...@remap=output)
> > >
> > > thanks for any insights.
> > > --Tim Arnold
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to