|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: tags and elements
Hello Elke,
if you want to copy all the elements, you have to tell it the processor. You can't manipulate the input document. At http://www.w3.org/TR/xslt#copying you can find a template that copies everything to the output. If you want to add some elements, you must add some more template so that these elements will not be matched with the general one, but with the specific one: identity transformation template: <xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>specific template: <xsl:template match="entries">
<xsl:copy>
<xsl:appply-templates select="@*|node()"/>
<entry>a new entry</entry>
</xsl:copy>
</xsl:template>Hope this helps a bit, Joerg Naraschewski, E. wrote: Hello, -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








