[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Special character as element name
Deborah Pickett wrote:
San wrote:<Body ID="2" > <#x/> </Body> I am under the impressions that the OP means to replace #x with something like í or something similar. Which is neither allowed, you cannot have character entities as the name for the tag. If he actually mean a "special character" being something other than US-ASCII, this *is* allowed, and can be created. Even if the xsl:element instruction contains character entities: <xsl:element name="#&xDA;" /> or <xsl:element name="{@URI}" /> (though I can hardly believe that a URI, if it is a URI, won't have other illegal qName characters, like '/', '%' etc.) If the OP means he wants to create XML output that is not XML, there is the option (though highly discouraged) to create output as Text. However, in that case it is Text, not XML anymore, and xsl:element won't help you, you will have to create the 'element'-like text piece by piece by hand. (using XSLT 2 there's another trick with character-maps, but still, it is *not* XML anymore). Cheers, -- Abel Braaksma http://www.nuntia.nl
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|