dita-ot / docs

DITA Open Toolkit documentation
https://www.dita-ot.org/dev
Apache License 2.0
58 stars 96 forks source link

Improve sample template #354

Open ToshihikoMakita opened 3 years ago

ToshihikoMakita commented 3 years ago

Description

Make it clear how the following sample template correspondence with DITA.

https://github.com/dita-ot/docs/blob/develop/topics/plugin-rewrite-rules.dita

<xsl:template match="file[@format = 'image']/@result">
  <xsl:attribute name="{local-name()}" select="concat('images/', .)"/>
</xsl:template>

Possible Solution

Add description to above template code.

Potential Alternatives

None

Additional Context

To dynamically adjust the names and locations of output files in the map-first pre-processing routine (preprocess2)

It is also unclear that this function guarantee the xref/@href rewrite or reltable references.

infotexture commented 3 years ago

@jelovirt Can you provide further details on this?

I think it makes sense to provide more information here, but I don't know enough about how this works to answer the questions above.

jelovirt commented 3 years ago

The first thing would be that we'd need to document the .job.xml i.e. Job object serialization format. The Job object itself has some Javadoc.

I'll fill this comment out when I have time.