Re: Passing profiling conditions into transformation for DocBook

Jirka Kosek <[email protected]> Tue, 14 May 2024 22:48:03 +0200
Newsgroups gmane.editors.xxe.general
Message-ID <[email protected]>
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: [email protected]      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
------------------------------------------------------------------


--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
OpenPGP_signature.asc (application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE-----

wmMEABEIACMWIQRya5eRAjs9i3DpmvLPCZLDufR1HgUCZkPOAwUDAAAAAAAKCRDPCZLDufR1Hsni
AJ9ZMrHmMVikkxsLRt0K7ZL0lyFndwCfeM25gAZMCOrDDIacwuN/vWabxaI=
=Id41
-----END PGP SIGNATURE-----