xsl-list
[Top] [All Lists]

RE: Spaces in Tag Name

2003-01-06 02:54:34
Why would you want this? As others have said, it is not allowed in an
XML document; tell us what you are trying to achieve by this (and why
you think you need a space in your element name) and we should be able
to point out a solution which does follow the XML specification.

Rgs,

Ben

-----Original Message-----
From: Vijaya Kumar Y [mailto:vijayay(_at_)aztec(_dot_)soft(_dot_)net] 
Sent: 06 January 2003 09:32
To: Peter Davis; xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Spaces in Tag Name


Hi 
  Sorry here 1 is a part of child also , i dont want that to be a
sepearate attribute


may be i want the XML file to be of this form

<Root>
   <vijay kumar>123</vijay kumar>
<Root>
note there is a space between vijay and kumar

i want the xml file to be of the above form, 
if we can how to load that file or any necessay changes to be done

regards
vijay

-----Original Message-----
From: Peter Davis [mailto:pdavis152(_at_)attbi(_dot_)com]
Sent: Monday, January 06, 2003 2:52 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com; Vijaya Kumar Y
Subject: Re: [xsl] Spaces in Tag Name


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

No.

Please see http://www.w3.org/TR/REC-xml#NT-Name

You can use "_" or "-" as an alternative, such as <Child-1>, or use 
attributes such as <Child index="1">.


On Monday 06 January 2003 01:03, Vijaya Kumar Y wrote:
the quetion is CAN we have a space in the Tag Name for example like

<Root>
  <Child 1> 12</Child 1>
  <Child 2> 12212</Child 2>
</Root>

- -- 
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+GUqfhDAgUT1yirARAjMBAJ9A20kcyzjVFFcRM6xHNiYdiLOfCACdHe/Y
WJ4ykLNirwLr29UqfouBYzg=
=GkJJ
-----END PGP SIGNATURE-----

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


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



<Prev in Thread] Current Thread [Next in Thread>