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

Creating an attribute name of xmlns:xyz

Subject: Creating an attribute name of xmlns:xyz
From: Gilles Maurice <GMaurice@xxxxxxxxxxx>
Date: Mon, 12 Feb 2001 14:51:01 -0500
xfa.org
I an writing an xsl file which creates another xsl file. It works fine
except I need teh original xsl file to create the following statement:

    <stylesheet xmlns="http://www.w3.org/1999/XSL/Transform"
xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0" version="1.0">

To do so, the following xsl statements are used:

  <element name="stylesheet">
    <attribute name="xmlns">http://www.w3.org/1999/XSL/Transform</attribute>
    <attribute name="xmlns:xfa" 
                   namespace="http://www.xfa.org/schema/xfa-data/1.0">
                   http://www.xfa.org/schema/xfa-data/1.0
    </attribute>
    <attribute name="version">1.0</attribute>
  ...
  </element>


When calling the Sablotron xsl processor, I get the following error message:

Error [code:227] [URI:file://C:/mod/mod.xsl] [line:7] [node:element
'<attribute>']
  invalid namespace prefix 'xmlns'

How can I make it accept the "xmlns" or is there a way around this problem?

Thank-you,
Gilles Maurice

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


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.