|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Insert character for missing nodes
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








