docbook.org | Sources for http : //docbook.org/
kandi X-RAY | docbook.org Summary
kandi X-RAY | docbook.org Summary
Sources for http://docbook.org/
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docbook.org
docbook.org Key Features
docbook.org Examples and Code Snippets
Community Discussions
Trending Discussions on docbook.org
QUESTION
I'm quite sure that the question will need refinement, but wasn't able to better articulate my confusion in one sentence:
DocBook 5.2: The Definitive Guide, section 1.1. A Short DocBook History states that
Starting with DocBook V5.0, DocBook is exclusively an XML vocabulary defined with RELAX NG and Schematron.
According to Wikipedia on RELAX NG, it is a "schema language for XML—a RELAX NG schema specifies a pattern for the structure and content of an XML document".
Schematron on the other hand "is a rule-based validation language for making assertions about the presence or absence of patterns in XML trees. It is a structural schema language expressed in XML."
So both are schema languages, but
RELAX NG is used to define a vocabulary (which is kind of a domain-specific language expressed with tags(?); a semantic markup language in the case of DocBook) for creating XML documents
Schematron is used to validate XML documents based on their associated XML schemas (using
jing
for example, I guess?)
I assumed based on the DocBook wikipedia line
[DocBook v5.x] is formally defined by a RELAX NG schema with integrated Schematron rules
that there is a relationship between them. Also, does this imply that a RELAX NG XML schema is not flexible enough to contain all the rules to use it to validate a document?
Probably missing something fundamental: found the question RelaxNG vs XML schema, but I truly thought that one creates XML schemas with RELAX NG, so the question doesn't makes sense to me, even after reading the answers...
...ANSWER
Answered 2021-Mar-04 at 09:54These are two small extracts from the compact-syntax RELAX NG schema at http://www.oasis-open.org/docbook/xml/5.0b5/rng/docbook.rnc:
QUESTION
I have created an XML diff but the diff is unclean in that it sometimes marks both the parent but also some of the children as changed.
I would like to clean up the diff so that only the topmost marked element keeps the diff attribute.
In the example below, I only want to keep the diff:delete
attribute on the element, but remove it from all children of
, since
is already marked.
The input is Docbook and arbitrary elements can contain diff attributes.
Here is my XML:
...ANSWER
Answered 2021-Feb-27 at 08:37I think you want:
QUESTION
I am fetching an array from the database in Componentdidmount in the state variable this.state.dataSource
...ANSWER
Answered 2020-Jun-26 at 07:08Save the tags to filter by in state and simple filter your data source inline versus in the onChange callback of the dropdown component. The following destructures tag
and dataSource
from state, and defines a filter function to be used as array::filter callback. If tag
is truthy then apply filter if tags match, otherwise return true to allow item to be passed through, i.e. unfiltered.
QUESTION
I have the following XML:
...ANSWER
Answered 2020-Jun-17 at 14:11I think you would need to specifically exclude the namespaces you don't want in your output with the exclude-result-prefixes instruction.
Example :
QUESTION
I have the following XML in a directory with the required entity file in place:
...ANSWER
Answered 2020-May-10 at 04:10You have to take into account the default namespace.
Add
QUESTION
I've the following file tree
...ANSWER
Answered 2018-Sep-30 at 09:36I've reproduced your situation in a different ways and got things working in a both cases.
You didn't mention the exact steps you make to build a book using XMLMind XML Editor (XXE for short), but the following steps certainly worked well.
None 1: I've used XXE Professional Edition, but as I know the difference between versions is only in putting random character within text if generating PDF from Personal Edition.
Note 2: XXE says that Book chapters
element is not allowed within you context. Despite that fact, the assembly can be generated successfully.
- Open an assembly file in XXE.
- Select Convert > Convert document > Convert to PDF.
- Select a path to save pdf file and press OK button.
Use your exact files and DIR structure (I included my own
.c
file sample for my own test).Use XXE assembly processor: http://www.xmlmind.com/xmleditor/assembly.shtml - it has the same codebase that XXE used for working with assemblies from XXE GUI.
Get docbook book file from assembly:
assembly-1_0_2_01/bin/assembly -v assembly.xml docbook_book.xml
In my test I've got the.c
sample file included - that proves that assembly utility works well with XInclude.Get
.pdf
manually:fop -c -xsl /fo/docbook.xsl -xml docbook_book.xml -pdf docbook_book.pdf
I've got the final result with .c
sample included in both cases.
QUESTION
Im trying to generate multiple html output files from one merged xml file with xslt 2.0
it works as expected when i have no namespace in the section
when i use the docbook namespace there are no files generated.
Does someone know why its not working with a namespace?
my xsl file:
...ANSWER
Answered 2018-May-30 at 07:53It is not working with namespaces because you have not accounted for the namespace in your XSLT. You XSLT is looking for an element called section
in no namespace, and so will not find the element in the XML which is in a namespace.
If, indeed, only the section
and title
elements are in a namespace, and not book
and chapter
too, you can handle the namespace by declaring it with a prefix in the XSLT like so:
QUESTION
got a problem with the generation from docbook to PDF.
I need to generate one PDF based on several docbook-xmls. Some of these XMLs are manually written (as the shown excerpt "book.xml" below), some of the are generated by OxygenXML (second excerpt below). The latter are XSD-schemata transferred into docbook using OxygenXML. As Oxygen does not have an option here, it always produced a docbook "article".
The file that include these articles is a docbook "book". However, inclusion produces errors: first error tells that:
...ANSWER
Answered 2018-Feb-21 at 10:37The problem in your code snippet is that you include (XInclude) article within chapter
- not within book
itself. And this is disallowed by DocBook schema (article
can't be within chapter
)
I.e.:
book
<article
(orset
<article
) are allowed;- BUT this (as in your sample):
book
<chapter
<article
is NOT
You just didn't see the full picture because of xinclude statement.
So the workaround is (compare these two snippets):
Yours:
QUESTION
I realize namespace questions are a dime a dozen, but I am getting from Saxon:
Warning SXXP0005: The source document is in namespace http://docbook.org/ns/docbook, b ut all the template rules match elements in no namespace (Use --suppressXsltNamespaceChec k:on to
avoid this warning)
The root element of my source file is:
...ANSWER
Answered 2017-Oct-17 at 14:06You can use (XSLT 2 and later) xpath-default-namespace="http://docbook.org/ns/docbook"
on your xsl:stylesheet
if you want your pattern and expressions like procedure
to match/select elements in that namespace. Otherwise procedure
matches/selects elements of that name in no namespace.
An xmlns="http://docbook.org/ns/docbook"
in the stylesheet only serves to put the result elements (like the orderedlist
in your sample) into that namespace.
QUESTION
I am totally new with xslt and try to make simple XSLT for converting docbook5 to fb2/fb3 and other formats needed for me.
But I found problem that I can not understand - if tag has
xmlns="http://docbook.org/ns/docbook"
xslt did not work.
Minimal example of docbook (db.docbook):
ANSWER
Answered 2017-Sep-09 at 10:00You have to declare the namespace in your XSLT and use it:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docbook.org
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page