|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: local-name() namespace xslt 2.0 question was Re: I
> here's a thing I was just wondered about, prompted by the RE:
> Identity
> transformation (without using xsl:copy) thread, I know one
> could do this
> with substring-before, substring-after but is there another way?:
> <xsl:param name="name"
> select="concat(substring-before(name(),':'),local-name())"/>
> <xsl:element name="{$name}">
concat(substring-before(name(),':'),local-name())
will return the same value as
name()
There isn't a function to extract the prefix, because it's not usually
significant, but there is a function namespace-uri() to get the
corresponding namespace URI.
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
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








