Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Explaination needed for namespaces ( xmlns:e )

From: "Mike Jansen" <mjansen_nntp@----.--->
To: NULL
Date: 5/9/2005 4:55:00 PM
Since there is no default namespace defined, the source document's elements
(clients, Title, Surname) have no namespace associated with them.  It
appears that the author of the XSLT is attempting to simply map all
<clients> tag's elements into elements that belong to the http://123.co.uk/
namespace. Perhaps the process using the output of the transformation
expects those particular tags to belong to that namespace (or perhaps they
are defined in a schema with that target namespace).

Mike


"resolutionsnet" <resolutionsnet@d...> wrote in message
news:2E2CD144-CCCA-4E19-92B1-8D751D5E2312@m......
> Can someone help explain what is happening in the below XSLT, in
particular I
> am interested is the namespace usage for xmlns:e and it's use on Title and
> Surname. What is happening here?
>
> Thank you
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
> xmlns:msxsl='urn:schemas-microsoft-com:xslt'
exclude-result-prefixes='msxsl'
> version='1.0' xmlns:e="http://123.co.uk/" >
>
> <xsl:output method='xml' omit-xml-declaration='no' />
> <xsl:template match='/'>
>    <xsl:apply-templates select='clients'/>
> </xsl:template>
>
> <xsl:template match='clients'>
> <client>
>
>    <e:Title><xsl:value-of select='Title/text()'/></e:Title>
>    <e:Surname><xsl:value-of select='Surname/text()'/></e:Surname>
>
> </client>
> </xsl:template>




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent