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

Re: How to select a document element from the input xm

Subject: Re: How to select a document element from the input xml fileusing xslt?
From: "George Cristian Bina" <george@xxxxxxx>
Date: Tue, 13 Jul 2004 00:52:27 +0300
xslt input namespace
> When I implemented it this way:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <stylesheet xmlns="http://www.w3.org/1999/XSL/Transform"  version="1.0"
> xmlns:xsl="dummy">
>   <namespace-alias stylesheet-prefix="xsl" result-prefix=""/>
>
> ....
> And then debug, I got an "unexpected value" error at the line
> <namespace-alias stylesheet-prefix="xsl" result-prefix=""/>
>
> What is wrong?

Both Xalan 2.5.1 and Saxon 6.5.3 work with this, however, according with the
XSLT specification [1] the value #default may be used for specifying the
default namespace so you can try:
  <namespace-alias stylesheet-prefix="xsl" result-prefix="#default"/>

Alternatively you can define a proxy for the
http://www.w3.org/1999/XSL/Transform namespace and use that in the
result-prefix attribute value.

[1] http://www.w3.org/TR/xslt#literal-result-element

Best Regards,
George
-------------------------------------------------------
George Cristian Bina mailto:george@xxxxxxxxxxxxx
<oXygen/> XML Editor - http://www.oxygenxml.com/

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.