You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Armin S. A. Roehrl" <Ar...@epfl.ch> on 2000/07/17 19:59:02 UTC
parsing problem with: ..344&CONTEXT=34..
Dear Gurus,,
how can I get the parser to eat <URL>..344&CONTEXT=34..</URL> ?
How can I tell the parser not to parse "..344&CONTEXT=34." ?
I think the problem is the '&' which is used as entity designator.
Thanks a lot for your help.
Armin
Re: Ampersand problem WAS parsing problem with:
..344&CONTEXT=34..
Posted by Joseph Shraibman <jk...@selectacast.net>.
OK never mind, the & in the output got converted by netscape, so I
don't have a problem.
Joseph Shraibman wrote:
>
> I have the same problem. I have an xsl template that looks like this:
>
> <a>
> <xsl:attribute name="href">page.jsp?var1=3&var2=<xsl:value-of
> select="./meta/@var2"/></xsl:attribute>click here</a>
>
> The problem is that if I don't escape the ampersand Xalan chokes, and if
> I do I get the escaped & in the output, which I don't want.
>
> Eric Ye wrote:
> >
> > use charater reference or CDATA sections.
> > with charater reference, replace "&" with "&"
> > with CDATA sections, "<![CDATA[..344&CONTEXT=34]]>
> > _____
> >
> > Eric Ye * IBM, JTC - Silicon Valley * ericye@locus.apache.org
> >
> > ----- Original Message -----
> > From: "Armin S. A. Roehrl" <Ar...@epfl.ch>
> > To: <xe...@xml.apache.org>
> > Sent: Monday, July 17, 2000 10:59 AM
> > Subject: parsing problem with: <URL>..344&CONTEXT=34..</URL>
> >
> > > Dear Gurus,,
> > >
> > > how can I get the parser to eat <URL>..344&CONTEXT=34..</URL> ?
> > > How can I tell the parser not to parse "..344&CONTEXT=34." ?
> > > I think the problem is the '&' which is used as entity designator.
> > >
> > > Thanks a lot for your help.
> > > Armin
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
Ampersand problem WAS parsing problem with:
..344&CONTEXT=34..
Posted by Joseph Shraibman <jk...@selectacast.net>.
I have the same problem. I have an xsl template that looks like this:
<a>
<xsl:attribute name="href">page.jsp?var1=3&var2=<xsl:value-of
select="./meta/@var2"/></xsl:attribute>click here</a>
The problem is that if I don't escape the ampersand Xalan chokes, and if
I do I get the escaped & in the output, which I don't want.
Eric Ye wrote:
>
> use charater reference or CDATA sections.
> with charater reference, replace "&" with "&"
> with CDATA sections, "<![CDATA[..344&CONTEXT=34]]>
> _____
>
> Eric Ye * IBM, JTC - Silicon Valley * ericye@locus.apache.org
>
> ----- Original Message -----
> From: "Armin S. A. Roehrl" <Ar...@epfl.ch>
> To: <xe...@xml.apache.org>
> Sent: Monday, July 17, 2000 10:59 AM
> Subject: parsing problem with: <URL>..344&CONTEXT=34..</URL>
>
> > Dear Gurus,,
> >
> > how can I get the parser to eat <URL>..344&CONTEXT=34..</URL> ?
> > How can I tell the parser not to parse "..344&CONTEXT=34." ?
> > I think the problem is the '&' which is used as entity designator.
> >
> > Thanks a lot for your help.
> > Armin
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
Re: parsing problem with: ..344&CONTEXT=34..
Posted by Eric Ye <er...@locus.apache.org>.
use charater reference or CDATA sections.
with charater reference, replace "&" with "&"
with CDATA sections, "<![CDATA[..344&CONTEXT=34]]>
_____
Eric Ye * IBM, JTC - Silicon Valley * ericye@locus.apache.org
----- Original Message -----
From: "Armin S. A. Roehrl" <Ar...@epfl.ch>
To: <xe...@xml.apache.org>
Sent: Monday, July 17, 2000 10:59 AM
Subject: parsing problem with: <URL>..344&CONTEXT=34..</URL>
> Dear Gurus,,
>
> how can I get the parser to eat <URL>..344&CONTEXT=34..</URL> ?
> How can I tell the parser not to parse "..344&CONTEXT=34." ?
> I think the problem is the '&' which is used as entity designator.
>
> Thanks a lot for your help.
> Armin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>