how can I export xml in indesign including all of the linebreaks a la "
"? I had the feeling that I already had this at one point, but I'm not sure what I changed to not export linebreaks.
I feel it maybe has something to do with my xsl. If this is a right guess, here is my xsl:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:transform xmlns:xsl="http://ift.tt/tCZ8VR" version="2.0"
xmlns:ex="example">
<xsl:output method="xml" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" />
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="*[local-name() = 'table']"/>
<xsl:template match="*[local-name() = 'text']">
<xsl:copy>
<xsl:attribute name="value">
<xsl:apply-templates/>
</xsl:attribute>
</xsl:copy>
</xsl:template>
<xsl:template match="*[local-name() = 'b' or local-name() = 'i']">
<xsl:value-of select="concat('[',local-name(),']')"/>
<xsl:apply-templates/>
<xsl:value-of select="concat('[/',local-name(),']')"/>
</xsl:template>
<xsl:template match="@value">
<xsl:attribute name="value">
<xsl:value-of select="translate(.,'
','
')"/>
</xsl:attribute>
</xsl:template>
<xsl:template match="@href"/>
</xsl:transform>
I wish I could share more "what I've tried", but I just have no clue where to begin, as it just disappeared from one moment from another. Thank you really much.
No comments:
Post a Comment