Insert/Preserve XSL Attribute Values in PDF Output
Posted: Fri Aug 31, 2018 12:37 am
Hello!
I'm trying to find some way to insert/preserve the xsl attribute names and their values that are applied to fo objects in the final PDF deliverable. I'm looking to create a stylesheet of all the attribute sets that are used and applied to all nodes for my custom PDF plugin.
Ideally, I would like something along the lines of:
for all fo objects (fo:inline, fo:block, fo:table, etc.)
I've tried creating a template that matches every node and inserts the local-name of the node:
but this isn't giving me the desired result, because this just returns the node name and not the attributes that are applied. I'm wondering if I need to add a post-processing step that would comb through the topic.fo?
Any help on this would be greatly appreciated.
Thanks!
-Daniel
I'm trying to find some way to insert/preserve the xsl attribute names and their values that are applied to fo objects in the final PDF deliverable. I'm looking to create a stylesheet of all the attribute sets that are used and applied to all nodes for my custom PDF plugin.
Ideally, I would like something along the lines of:
Code: Select all
<fo:block attribute1="value" attribute2="value">Some text attribute 1:value attribute2:value</fo:block>
I've tried creating a template that matches every node and inserts the local-name of the node:
Code: Select all
<xsl:template match="*">
<xsl:for-each select=".">
<xsl:value-of select="local-name()"/>
<xsl:apply-templates/>
</xsl:for-each>
</xsl:template>
Any help on this would be greatly appreciated.
Thanks!
-Daniel