[Home] [By Thread] [By Date] [Recent Entries]
Jesse Gillies schrieb:
In your example, however, you want to guarantee a certain structure that may be missing in your input. A simple way to guarantee this structure is to code it in your program: <xsl:template match="business">
<xsl:copy>
<name><xsl:value-of select="name"/></name>
<address><xsl:value-of select="address"/></address>
<url><xsl:value-of select="url"/></url>
</xsl:copy>
</xsl:template>This would be step 1 in what Martin already suggested for 1.0. You may also simply leave out the element constructors (like <name>...</name>) and separate your <xsl:value> elements by <xsl:text>|</xsl:text> to guarantee the pipe-structure. This works for 1.0, too. Michael Ludwig
|

Cart



