On 14.05.2024 18:19, Hussein Shafie wrote:
Please do not hesitate to explain what's wrong with the two above assumptions (the list of "Common Effectivity Attributes" and the "Custom profiling attribute") and may be, point us to more up-to-date reference documents. We'll be glad to fix bugs and/or improve the DocBook support of the "Easy Profiling" add-on (https://www.xmlmind.com/xmleditor/_distrib/doc/profiling/index.html).
I'm not saying that you did anything wrong. But two observations:* Profiling is usually performed on other attributes than only on "effectivity" attributes. Two most common examples are @status (you want to filter our draft pieces of document before publishing) and @xml:lang (some people store translations of document in a single file and need to profile on language to get readable output in one language). So I would expect that your profiling add-on would support profiling at least on attributes supported by DocBook stylesheets (see https://docbook.sourceforge.net/release/xsl/current/doc/html/profiling.html)
* It is very common to customize DocBook schema and add additional profiling attributes (see e.g. https://www.sagehill.net/docbookxsl/AddProfileAtt.html). So it would be great if your add-on could support such scenarios as well.
My expectation was that any attribute could be used as you can specify any attribute in .profiles file. And this seems to work in editor. So I was expecting these attributes to be passed to transformation as well. I can imagine that you can either do it by passing all configured attributes in .profiles in parameters named profile.xxx where xxx is attribute name -- this currently works only for predefined set of effectivity attributes.
Or alternatively if you don't want to make this too DocBook specific it would be nice if in .profiles you could specify name of XSLT parameter that would be used for passing value when document is being converted.
At least I know that I have to use normal XSLT parameters for now as we are using custom profiling attributes.
Thanks and have a nice day, Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: ji...@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------
OpenPGP_signature.asc
Description: OpenPGP digital signature
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support