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

Special character as element name

Subject: Special character as element name
From: San <san_sar@xxxxxxxxx>
Date: Thu, 25 Jan 2007 00:20:20 -0800 (PST)
 Special character as element name
Dear all,

Many thanks for answering my questions the other day.
Now I encounter some problem, I search for the answer
but haven't got the right one.(using version 1.0 and
xalan)

Also This is my xml input file

<Query ID="2" >
  <QueryHead URI="#x">
  </QueryHead>
</Query>
			
I would like to have the output (getting the
attributes value) as the element name

<Body ID="2" >
  <#x/>
</Body>

I am trying using this xslt file (below), which ok if
the attributes value not special character (X without
#)but not #x

<Body>
  <xsl:element name="{//Query/@URI}"/>	
</Body>

I tried several possibility, first I used the unicode
for replacing this # with hexadecimal. stil not work,
then I change the encoding type in the xslt file

<?xml version="1.0" encoding="iso-8859-1"?> 

<xsl:output method="xml" indent="yes"  
encoding="ISO-8859-1"/> 

Stil doesn't give me result. 
I really stuck with this :(

thanks a lot for your help
san



 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

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.