|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] [no subject]
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="node( ) | @*">
<xsl:copy>
<xsl:apply-templates select="@* | node( )"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
The idea, then, is to augment this with templates to transform what you
want. For example, to [naively] prefix all "select" attributes with "x:",
you could add the following template:
<xsl:template match="@*[local-name() = 'select']">
<xsl:attribute name="select">
<xsl:value-of select="concat('x:', .)"/>
</xsl:attribute>
</xsl:template>
Of course a realistic template would need to do more processing such as
splitting at "/" separators, recombining, etc.
Regards,
--A
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
|
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


![[no subject]](/images/get_stylus.gif)





