- From: Norman Walsh <ndw@nwalsh.com>
- Date: Tue, 01 May 2007 12:26:48 -0400
- To: public-xml-processing-model-wg@w3.org
- Message-ID: <87irbcmrw7.fsf@nwalsh.com>
/ Alex Milowski <alex@milowski.org> was heard to say: | On 5/1/07, Norman Walsh <ndw@nwalsh.com> wrote: |> |> / Innovimax SARL <innovimax@gmail.com> was heard to say: |> | Sorry I was talking about this |> | [[ |> | <?xml version="1.0"?> |> | <?my-funky-pi i prefer to see here?> |> | <!-- my prefered first comment--> |> | <root attribute-i-like="value-of-attribute" |> xmlns:my-funky-namespace="funky |> | rulez"> |> | ... |> | </root> |> | <!-- my prefered last comment--> |> | <?my-funky-pi i prefer to see here?> |> | ]] |> |> If you run that through escape-markup, you should get: |> |> <c:result> |> <?my-funky-pi i prefer to see here?> |> <!-- my prefered first comment--> |> <root attribute-i-like="value-of-attribute" |> xmlns:my-funky-namespace="funky |> rulez"> |> ... |> </root> |> <!-- my prefered last comment--> |> <?my-funky-pi i prefer to see here?> |> </c:result> |> |> I said before, and I still strongly believe, that it's totally broken |> for p:escape-markup not to escape the "root element". It should return |> a c:result containing the entire document as a single text node. | | The main use case for this step is the RSS description element | (which is what I included in my example. Doing the above does allow did you mean "does not" ^^^ | handling the RSS description element. | | I could see having the step work in two ways: | | * Given a match pattern via an option called 'match', it will | escape particular elements (e.g. the RSS description element). So the semantics of match would be that it (un)escapes the content of the matched element, but not the matched element? I suppose I could live with that. | * If that match pattern is omitted, you get the whole escaped | document wrapped in a c:result element as you've demonstrated | above. Be seeing you, norm -- Norman Walsh <ndw@nwalsh.com> | Birds are taken with pipes that imitate http://nwalsh.com/ | their own voices, and men with those | sayings that are most agreeable to | their own opinions.--Samuel Butler
Received on Tuesday, 1 May 2007 16:30:19 UTC