|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Namespace Problem
Bommineni, Venkateshwar wrote:
Output is: Just create elements you want to be in a namespace - in a namespace: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/Test"> <Organization> <Members xmlns="htp://www.foo.com/namespace/v1"> <xsl:apply-templates select="People"/> </Members> </Organization> </xsl:template> <xsl:template match="People"> <xsl:for-each select="Person"> <Member xmlns="htp://www.foo.com/namespace/v1"> <xsl:value-of select="concat(substring(LName,1,1),'.',FName)"/> </Member> </xsl:for-each> </xsl:template> </xsl:stylesheet> -- Oleg Tkachenko http://blog.tkachenko.com Multiconn Technologies, Israel
|
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








