![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: How to create CSV/Text form XML [Thread Next] Re: How to create CSV/Text form XMLTo: NULL Date: 4/1/2005 4:39:00 PM Hi Romin,
thanks for your answer.
This was quite close to the solution.
I changed in the following way.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:for-each select="items/item">
<xsl:for-each select="item_field[@dbid='feld2' or @dbid='feld4']">
<xsl:value-of select="."/>;<xsl:text/>
</xsl:for-each>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Could you explain the line:
<xsl:value-of select="."/>
What is this for?
Thanks Stefan
Romin wrote:
> Here is the XSLT that lets you extract out the elements that you need.
> You can do the formatting accordingly:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="text"/>
>
> <xsl:template match="/">
> <xsl:for-each select="items/item">
> <xsl:for-each select="item_field[@dbid='feld2' or
> @dbid='feld4']">
> <xsl:value-of select="."/>
> </xsl:for-each>
> </xsl:for-each>
> </xsl:template>
>
> </xsl:stylesheet>
>
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
