Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a sequence instead of repeated <xsl:copy-of> #37

Open
tgraham-antenna opened this issue Dec 9, 2019 · 0 comments
Open

Use a sequence instead of repeated <xsl:copy-of> #37

tgraham-antenna opened this issue Dec 9, 2019 · 0 comments
Assignees

Comments

@tgraham-antenna
Copy link
Member

IMO, this:

<dummy>
<xsl:copy-of select="$prmRowAttr/@*"/>
<xsl:copy-of select="$colSpec/@align"/>
<xsl:copy-of select="$colSpec/@colsep"/>
<xsl:copy-of select="$colSpec/@rowsep"/>
<xsl:copy-of select="$colSpec/@rowheader"/>
<xsl:copy-of select="$colSpec/@char"/>
<xsl:copy-of select="$colSpec/@charoff"/>
<xsl:copy-of select="$prmEntry/@colname"/>
<xsl:copy-of select="$prmEntry/@namest"/>
<xsl:copy-of select="$prmEntry/@nameend"/>
<xsl:copy-of select="$prmEntry/@morerows"/>
<xsl:copy-of select="$prmEntry/@colsep"/>
<xsl:copy-of select="$prmEntry/@rowsep"/>
<xsl:copy-of select="$prmEntry/@align"/>
<xsl:copy-of select="$prmEntry/@char"/>
<xsl:copy-of select="$prmEntry/@valign"/>
<xsl:copy-of select="$prmEntry/@ahf:colnum"/>
<xsl:copy-of select="$prmEntry/@ahf:col-span-count"/>
<xsl:copy-of select="$prmEntry/@ahf:row-span-count"/>
<xsl:copy-of select="$prmEntry/@ahf:col-spanned"/>
<xsl:copy-of select="$prmEntry/@ahf:row-spanned"/>
<xsl:copy-of select="$prmEntry/@ahf:is-last-col"/>
<xsl:copy-of select="$prmEntry/@ahf:is-last-row"/>
</dummy>

would be easier to read with just one xsl:copy-of:

 <dummy> 
            <xsl:copy-of select="$prmRowAttr/@*,
                                 $colSpec/@align,
            ...
                                 $prmEntry/@ahf:is-last-row"/>
 </dummy>
@ToshihikoMakita ToshihikoMakita self-assigned this Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants