Am Dienstag, den 06.10.2020, 18:48 +0800 schrieb Kevin Buckley via lfs-dev: > i was experimenting with making use of an extra attribute in the > XML source tags, akin to the vanilla book's 'sysv' or 'systemd' > for the "revision" attribute,, or to Thomas's Multilib arch attribute > ('ml_32', 'ml_x32' or 'ml_all'). > > When i come to render my source, having added an extra > stringparam to the xsltproc invocations, vis > > --stringparam profile.revision $(REV) \ > --stringparam profile.arch $(ARCH) \ > --stringparam profile.pkguser $(PKGUSER) \ > > I get told > > validity error : No declaration for attribute pkguser of element <element> > > I realise that I have missed adding such a declaration into one of the > stylesheet, or other ancillary, files but I can't determine, by inspection > of many of those files, where such a declaration needs to go. > > Where should such a declaration go?
Those attributes like 'arch', 'revision' etc. are defined somewhere in the deepness of docbook. You cannot simply introduce new ones by adding them to the string parameter list for the renderer. All the attributes used in the {B,}LFS-book are predefined ones. You may have allready seen the pages at http://www.sagehill.net/docbookxsl/AddProfileAtt.html - the talk about "how easy it is to add". Well, i didn't find it that easy, maybe you have more luck. -- Thomas -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page