summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
3dc36d1)
It’s not possible to serialize things like entities using the normal
X·S·L·T processes. With this commit, one can instead use something like
`<书社:raw-output>&my-entity;</书社:raw-output>` inside of
`<书社:serialize-xml>` elements to get this result.
6. ⛩️📰 书社 compiles each output file to `build/result`.
6. ⛩️📰 书社 compiles each output file to `build/result`.
-7. ⛩️📰 书社 symlinks most output files from `build/result` to
+7. ⛩️📰 书社 copies most output files from `build/result` to
`build/public`, but it does some additional processing instead on
those which indicate a non‐X·M·L desired final output form.
`build/public`, but it does some additional processing instead on
those which indicate a non‐X·M·L desired final output form.
It is not possible to selectively only declare one prefix for a
name·space to the exclusion of others.
It is not possible to selectively only declare one prefix for a
name·space to the exclusion of others.
+ `<书社:raw-output>` elements may be used inside of
+ `<书社:serialize-xml>` elements to inject raw output into the
+ serialized X·M·L.
+
The following are recommendations on effective creation of
transforms :—
The following are recommendations on effective creation of
transforms :—
<xslt:template match="text()" mode="书社:header"/>
<xslt:template match="text()" mode="书社:footer"/>
<xslt:template match="text()" mode="书社:metadata"/>
<xslt:template match="text()" mode="书社:header"/>
<xslt:template match="text()" mode="书社:footer"/>
<xslt:template match="text()" mode="书社:metadata"/>
- <xslt:output method="xml" encoding="UTF-8" cdata-section-elements="html:script html:style html:textarea 书社:raw-text"/>
+ <xslt:output method="xml" encoding="UTF-8" cdata-section-elements="html:script html:style html:textarea 书社:raw-output 书社:raw-text"/>
</xslt:transform>
</template>
<output method="xml" encoding="UTF-8"/>
</xslt:transform>
</template>
<output method="xml" encoding="UTF-8"/>
<with-param name="source" select="string($source)"/>
</call-template>
</template>
<with-param name="source" select="string($source)"/>
</call-template>
</template>
- <template match="node()" mode="书社:serialize">
+ <template match="node()" mode="书社:serialize" priority="0">
<param name="namespace" select="''"/>
<param name="declare-namespaces" select="''"/>
<param name="prefix-map">
<param name="namespace" select="''"/>
<param name="declare-namespaces" select="''"/>
<param name="prefix-map">
</with-param>
</apply-templates>
</template>
</with-param>
</apply-templates>
</template>
+ <template match="书社:raw-output" mode="书社:serialize" priority="1">
+ <copy-of select=".//text()"/>
+ </template>