cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@localbar.com>
Subject Re: BUG?
Date Sat, 01 Jul 2000 07:30:27 GMT
Peter Anning wrote:

> Cocoon 1.7.4
>
> I have a custom producer that inserts xsl stylesheet and processing =
> instructions into my xml before passing it to the xslt process for =
> transform. These instuctions are ignored/removed if the xsl element =
> attributes are in single quotes.
>
> ie. this fails, Cocoon just delivers XML to the browser
>
> <?xml-stylesheet
> href='http://mantova:8080/data/guides/xslt/guideSectionPrevalence.xslt'
> type='text/xsl'?>
> <?cocoon-process type='xslt'?>
>
> this works
>
> <?xml-stylesheet
> href="http://mantova:8080/data/guides/xslt/guideSectionPrevalence.xslt"
> type="text/xsl"?>
> <?cocoon-process type="xslt"?>
>
> The single quotes used to work at 1.7
>
>      Peter Anning

XML spec says;

[10] AttValue ::= '"' ([^<&"] | Reference)* '"'
                                 |  "'" ([^<&'] | Reference)* "'"

(Chapter 2.3)

clearly indicating that both " and ' should be allowed, as long as they
are matching.

Niclas


Mime
View raw message