[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: Omitting default namespace in the output - XSLT 2.

Subject: AW: Omitting default namespace in the output - XSLT 2.0
From: "Huditsch Roman" <Roman.Huditsch@xxxxxxxxxxxxx>
Date: Mon, 20 Dec 2004 14:53:42 +0100
xslt default namespace
I forgot to mention that the default namespace in my source document is
prefixed with "ln".
So this explaines my match pattern "ln:table".

wbr,
Roman

_______________________________________

Roman Huditsch
IT and Electronic Publishing
LexisNexis ARD Orac
Marxergasse 25
1030 Vienna
Austria
ph: +43-1-534 52-1514
f: +43-1-534 52-140
e-mail roman.huditsch@xxxxxxxxxxxxx
www.lexisnexis.at


> -----Urspr|ngliche Nachricht-----
> Von: Huditsch Roman [mailto:Roman.Huditsch@xxxxxxxxxxxxx]
> Gesendet: Montag, 20. Dezember 2004 14:52
> An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Betreff:  Omitting default namespace in the output - XSLT 2.0
>
> Hi,
>
> Given an example input like:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <norm xmlns="myDefaultNamespace">
> 	<table>
> 		<row>
> 			<cell>My Table</cell>
> 		</row>
> 	</table>
> </norm>
>
> I searched for an easy way to get output data, which is not
> associated to my default namespace any more, with the help of
> <xsl:copy-of> in XSLT 2.0 I hoped that the attribute
> "copy-namespaces" set to "no" would help me here, but
> unfortunately I had no luck with Saxon 8.1.1
>
> My output still looks like
>
> <table>
> 	<row xmlns="myDefaultNamespace">
> 		<cell>My Table</cell>
> 	</row>
> </table>
>
>
> XSLT:
> =====
>
> 	<xsl:template match="ln:table">
> 		<table>
> 			<xsl:copy-of select="node() | @*"
> copy-namespaces="no"/>
> 		</table>
> 	</xsl:template>
>
>
> Thanks in advance for your input!
>
> wbr,
> Roman
> _______________________________________
>
> Roman Huditsch
> IT and Electronic Publishing
> LexisNexis ARD Orac
> Marxergasse 25
> 1030 Vienna
> Austria
> ph: +43-1-534 52-1514
> f: +43-1-534 52-140
> e-mail roman.huditsch@xxxxxxxxxxxxx
> www.lexisnexis.at

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.