Re: XSLT/XPATH problem, possible bug

"Michael Hansen" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
> My reading of <http://www.w3.org/TR/REC-xml/#dt-chardata> is that you
> do not need to escape the ampersand '&' in a processing instruction:
>
> "The ampersand character (&) and the left angle bracket (<) MUST NOT
> appear in their literal form, _except_ when used as markup delimiters,
> or within a comment, a processing instruction, or a CDATA section."
>
> So you would simply need to write your xml-stylesheet processing
> instruction with unescaped ampersands (e.g.
>   &filter=Rock
> ) and all is fine, Mozilla will then make the proper URL request and
> your PHP script will have the proper $_GET variables.
>
> That is what the XML specification gives.

Aha, so strictly speaking it is not a bug. However it would make this a 
great deal easier if encoded ampersands were allowed here too (in terms of 
workflow).

Thanks for clearing this up,

Regards,

 Michael
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.