Thomas Schraitle | 17 May 2012 15:51
Picon

Different resource Definitions in Assembly File and Schema?

Hi,

currently I'm playing with the assemblies stylesheets from Bob and observed 
some discrepancies.

When I disassemble an existing DocBook 5 book into topics with Bob's topic-
maker-chunk.xsl[1] stylesheet, I get this structure in the "myassembly.xml" 
file:

 <assembly xmlns:xlink="http://www.w3.org/1999/xlink"
           xmlns="http://docbook.org/ns/docbook">
  <resources>
    <resource fileref="book.xml" xml:id="thebook"/>
    <resource fileref="preface.xml" xml:id="preface">
      <description>Welcome!</description>
    </resource>
    <resource fileref="part-first.xml" xml:id="part-first">
      <description>The first Part</description>
    </resource>
    <!-- ... -->
  </resources>
  <!-- <structure> pruned -->
 </assembly>

Thanks to Bob, he puts the latest assembly schema into the schema/ 
directory[2]. The assembly schema, definies a resource element as follows:

 db.resource = db.file.resource | db.container.resource
 db.file.resource =
    ## Identifies an object managed within the assembly
(Continue reading)

Bob Stayton | 17 May 2012 17:37

Re: Different resource Definitions in Assembly File and Schema?

Hi Thomas,
The version of the assembly schema that I included in the XSL snapshots is 
assembly51b7.rnc, but that version does not contain any reference to 
"db.file.resource", and neither does the schema file downloaded from [2].  So I'm 
wondering how you ended up with an older version.

Bob Stayton
Sagehill Enterprises
bobs <at> sagehill.net

----- Original Message ----- 
From: "Thomas Schraitle" <tom_schr <at> web.de>
To: <docbook <at> lists.oasis-open.org>
Sent: Thursday, May 17, 2012 6:51 AM
Subject: [docbook] Different resource Definitions in Assembly File and Schema?

Hi,

currently I'm playing with the assemblies stylesheets from Bob and observed
some discrepancies.

When I disassemble an existing DocBook 5 book into topics with Bob's topic-
maker-chunk.xsl[1] stylesheet, I get this structure in the "myassembly.xml"
file:

 <assembly xmlns:xlink="http://www.w3.org/1999/xlink"
           xmlns="http://docbook.org/ns/docbook">
  <resources>
    <resource fileref="book.xml" xml:id="thebook"/>
    <resource fileref="preface.xml" xml:id="preface">
(Continue reading)

Thomas Schraitle | 17 May 2012 18:09
Picon

Re: Different resource Definitions in Assembly File and Schema?

Hi Bob,

thanks for your quick answer.

Am Donnerstag, 17. Mai 2012, 08:37:26 schrieb Bob Stayton:
> The version of the assembly schema that I included in the XSL snapshots is
> assembly51b7.rnc, but that version does not contain any reference to
> "db.file.resource", and neither does the schema file downloaded from [2]. 
> So I'm wondering how you ended up with an older version.

Hmn, it seems, I've used version 5.1b6. In 5.1b7 the above patterns are not 
available anymore.

Interestingly, the src/assembly-core.rnc in SVN[1] contains still the 
db.file.resource and db.container.resource patterns: 

  $ grep -n "db.resource =" assembly-core.rnc
  120:   db.resource = db.file.resource | db.container.resource

Can you confirm that?

As far as I can see, the definition has been changed in 5.1b7 and contains now 
description. Is that correct?

Thanks! :)

------
[1] 
https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/docbook/relaxng/docbook/src/assembly-
core.rnc
(Continue reading)

Bob Stayton | 17 May 2012 18:31

Re: Different resource Definitions in Assembly File and Schema?

Indeed, the versions in SourceForge SVN are not current.  I sent a note to Norm asking 
him about the status of those files.

In beta 7, the committee implemented their decision to not allow content in an 
assembly file, except in a merge element. That simplifies the schemas and avoids 
keeping translatable content in a location separate from the resources.  So the 
"container" versions of resource and module were removed.  The description element was 
added at the same time.

Bob Stayton
Sagehill Enterprises
bobs <at> sagehill.net

----- Original Message ----- 
From: "Thomas Schraitle" <tom_schr <at> web.de>
To: "Bob Stayton" <bobs <at> sagehill.net>
Cc: <docbook <at> lists.oasis-open.org>
Sent: Thursday, May 17, 2012 9:09 AM
Subject: Re: [docbook] Different resource Definitions in Assembly File and Schema?

Hi Bob,

thanks for your quick answer.

Am Donnerstag, 17. Mai 2012, 08:37:26 schrieb Bob Stayton:
> The version of the assembly schema that I included in the XSL snapshots is
> assembly51b7.rnc, but that version does not contain any reference to
> "db.file.resource", and neither does the schema file downloaded from [2].
> So I'm wondering how you ended up with an older version.

(Continue reading)

Thomas Schraitle | 17 May 2012 18:40
Picon

Re: Different resource Definitions in Assembly File and Schema?

Hi Bob,

Am Donnerstag, 17. Mai 2012, 09:31:10 schrieb Bob Stayton:
> Indeed, the versions in SourceForge SVN are not current.  I sent a note to
> Norm asking him about the status of those files.
> 
> In beta 7, the committee implemented their decision to not allow content in
> an assembly file, except in a merge element. That simplifies the schemas
> and avoids keeping translatable content in a location separate from the
> resources.  So the "container" versions of resource and module were
> removed.  The description element was added at the same time.

Ahh, that explains it. Thanks Bob for your help! :-)

--

-- 
Gruß/Regards
  Thomas Schraitle

Gmane