This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: AW: name space troubles


>
> take the following example:
>
> <book xmlns="http://www.bookstore.com/book";> 
>	<title/>
>	<para/>
> <book>
>
> How would I come to this result:
>
> <book>
>	<title/>
>	<para/>
> </book>

Roman,

there are many examples of doing various identity transforms in the
archives.  Basically, you just want the local name of a given element or
attribute.  Thus, for this specific case:

<xsl:template match="*">
   <xsl:element name="{local-name()}">
      <xsl:apply-templates select="*"/>
   </xsl:element>
</xsl:template> 

Adding matchers and selectors for attributes and text nodes are likely
required for any real life example:

	match ="* | @* | text()"

...


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]