Re: [xsl] result-document, QNames, AVT's, format-attribute and use-character-maps attribute
2006-12-14 06:52:41
Florent Georges wrote:
There, it is not clearly stated that applies to AVT too.
But a little bit further in the same section, there is:
[ERR XTDE0290] Where the result of evaluating an XPath
expression (or an attribute value template) is required
to be a lexical QName, then [...]
So I think the intention is clear "{ 'test' }" is a valid
value for @format.
Michael Kay just confirmed this to be a bug indeed.
I guess you mean:
format = "{ string ( 'test' ) }"
format = "{ xs:QName ( 'test' ) }"
Oops! You are right!
If I'm right, this is not permitted by XML. So it is the
XML parser that will generate the error, before the XSLT
processor can see the input.
You are right on XML 1.0. 1.1 however, allows for almost everything,
except \x00. But XML is not the problem. I'd like to use
unparsed-text(), which by definition, bypasses the XML processor.
But in a way I can understand the conflict rising when allowing data to
enter the processor with illegal characters, because there seems no way
to represent them in XML, and so in XSLT. However, this shouldn't be too
hard, should it:
unparsed-text( [uri], [codepage], [illegal-char-treatment] )
where "illegal-char-treatment" would be something like "remove",
"spaces", "error" etc. But here I am inventing my own extension
function, like Michael Kay suggested.
Thanks & Cheers,
Abel
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [xsl] result-document, QNames, AVT's, format-attribute and use-character-maps attribute, Abel Braaksma
- Re: [xsl] result-document, QNames, AVT's, format-attribute and use-character-maps attribute, David Carlisle
- Re: [xsl] result-document, QNames, AVT's, format-attribute and use-character-maps attribute, Abel Braaksma
- Re: [xsl] result-document, QNames, AVT's, format-attribute and use-character-maps attribute, David Carlisle
- Re: [xsl] result-document, QNames, AVT's, format-attribute and use-character-maps attribute, Abel Braaksma
- Re: [xsl] result-document, QNames, AVT's, format-attribute and use-character-maps attribute, David Carlisle
RE: [xsl] result-document, QNames, AVT's, format-attribute and use-character-maps attribute, Michael Kay
Re: [xsl] result-document, QNames, AVT's, format-attribute and use-character-maps attribute, Florent Georges
- Re: [xsl] result-document, QNames, AVT's, format-attribute and use-character-maps attribute,
Abel Braaksma <=
|
Previous by Date: |
RE: [xsl] Problem with Xpath, ms |
Next by Date: |
Re: [xsl] result-document, QNames, AVT's, format-attribute and use-character-maps attribute, David Carlisle |
Previous by Thread: |
Re: [xsl] result-document, QNames, AVT's, format-attribute and use-character-maps attribute, Florent Georges |
Next by Thread: |
[xsl] Test scripts for style sheets, wrew ewrwe |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|