@
@CL
Hi,all
I was confused with xml transform.
I had a xml file like:
<Details>
<names>
<name/>
<name/>
......or more <name/>
</names>
<orders>
<order/>
<order/>
.....or more <order/>
</orders/>
....or more element
</Details>
and the destination would be like:
<Details>
<Detail>
<name/>
<order/>
.....or more element
</Detail>
<Detail>
<name/>
<order/>
.....or more element
</Detail>
.....or more details
<Details>
the num of details may be as large as 2000,
first get the nums and simply selected use the [index],
as:
<xsl:template match="/">
<Details>
<detail>
<name>
<xsl:value-of select="/Details/names/name[1]"/>
</name>
<order>
<xsl:value-of select="/Details/orders/order[1]"/>
</order>
....more elements
</detail>
....more detail with the index
</Details>
</xsl:template >
when the num is lagrer than a num ,maybe 30,the JAXP would throw the
javax.xml.transform.TransformerConfigurationException: can't load
translet class "GregorSamsa"
so what can I do with it?
I had tried to use the for-each loop and template loop,but there is
always with the syntax error,
and can you help me£¿
thanks
Richard
I was confused with xml transform.
I had a xml file like:
<Details>
<names>
<name/>
<name/>
......or more <name/>
</names>
<orders>
<order/>
<order/>
.....or more <order/>
</orders/>
....or more element
</Details>
and the destination would be like:
<Details>
<Detail>
<name/>
<order/>
.....or more element
</Detail>
<Detail>
<name/>
<order/>
.....or more element
</Detail>
.....or more details
<Details>
the num of details may be as large as 2000,
first get the nums and simply selected use the [index],
as:
<xsl:template match="/">
<Details>
<detail>
<name>
<xsl:value-of select="/Details/names/name[1]"/>
</name>
<order>
<xsl:value-of select="/Details/orders/order[1]"/>
</order>
....more elements
</detail>
....more detail with the index
</Details>
</xsl:template >
when the num is lagrer than a num ,maybe 30,the JAXP would throw the
javax.xml.transform.TransformerConfigurationException: can't load
translet class "GregorSamsa"
so what can I do with it?
I had tried to use the for-each loop and template loop,but there is
always with the syntax error,
and can you help me£¿
thanks
Richard