On 10/6/25 18:45, David Austin wrote:
> I have added an element to PreFigure that will read in an XSL stylesheet and 
> transform the source before compiling.  It's working well in the standalone 
> version of PreFigure, but within a PreTeXt document, the application of the 
> extract-prefigure stylesheet fails, seemingly due to a namespace issue.
Not sure where to begin here.  This mode makes "ID" attributes on elements.  I 
think there are three such attributes (we might only really need two), but they 
all use the same scheme, hence some generality afforded by parameters and we get 
consistency.
The particular template in question is matching items from non-PreTeXt 
namespaces, namely (X)HTML and PreFigure.  So if I was to also guess about 
adjustments needed for these experiments, I might add "author:*" to the match. 
Which then requires coordination between this stylesheet and others that employ 
an "author" prefix.
Perhaps the  mode="id-attribute"  could be improved.  But I think it works just 
fine right now.
My second guess is that this is just the tip of the iceberg if we are to 
introduce a namespace for arbitrary new elements.
Rob