• 您的位置我爱Aspx >> XML/XLST >> 使用xsl来动态生成java代码
  • 使用xsl来动态生成java代码

  • 作者:aspxer  来源:internet  日期:2007-5-20 0:28:40  关键字:xsl
  • <property>

    <name>testedOnAnimals</name>

    <type>boolean</type>

    <comments>the flag that indicates if the product was

    tested on animals</comments>

    </property>

    <property>

    <name>availableSince</name>

    <type>java.util.Date</type>

    <comments>the date when the company started offering this

    product to its customers</comments>

    </property>

    </bean>

    [/code]

    下面我就直接给出转换的xsl,如果大家对xsl不是很了解的话,可以先看一些资料,了解之后就会明白了。我在里面稍微做了些注释:

    [code]

    <?xml version="1.0"?>

    <xsl:stylesheet

    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

    version="1.0"

    xmlns:java="http://xml.apache.org/xslt/java"

    exclude-result-prefixes="java">

    我对这篇文章有话说?
  • 广告位招租,广告代号:content_468_15
  • 上一篇:可以啊---使用XML的五种场合(转自csdn)
    下一篇:xsl的功能还是蛮强大的