[jdom-interest] Ampersand in tag

bram bram at info.nl
Fri Dec 1 03:53:01 PST 2000


aaaa, the same problem we noticed over here,

you have to use the disable-output-escaping="yes" attribute,
eg
<xsl:text disable-output-escaping="yes">&lt;</xsl:text>

see http://www.w3.org/TR/xslt
chapter 16.4 Disabling Output Escaping



----- Original Message -----
From: "Nick Vincent" <Nick at Neoworks.com>
To: <jdom-interest at jdom.org>
Sent: Friday, December 01, 2000 12:20 PM
Subject: RE: [jdom-interest] Ampersand in tag


> Hi all,
>
> Thanks for your answers about replacing the ampersand with &amp;
>
> The problem with this is that the &amp; is not turned into an ampersand in
> the final XSLT parsed document, it still appears as &amp;.
>
> The attribute I'm trying to use holds a URL to be used to construct a link
> in HTML, and so the ampersand has to appear explicitly to pass GET
> parameters to the page.
>
> Any help much appreciated
>
> Thanks,
>
> Nick
>
> > -----Original Message-----
> > From: tsasala at hifusion.com [mailto:tsasala at hifusion.com]
> > Sent: 30 November 2000 19:58
> > Cc: 'jdom-interest at jdom.org'
> > Subject: Re: [jdom-interest] Ampersand in tag
> >
> >
> > Replace the ampersands with &amp;
> >
> > -Tom
> >
> > Nick Vincent wrote:
> > >
> > > Hi,
> > >
> > > I'm trying to parse an XML file with a tag like
> > >
> > > <item href="http://address.com/item.jsp?param=yes&param2=yes">
> > >
> > > But SAXBuilder, with validation off, refuses to parse the
> > file because the
> > > attribute has ampersands in.
> > >
> > > Does anyone know a way round this?
> > >
> > > Thanks,
> > >
> > > Nick
> > > _______________________________________________
> > > To control your jdom-interest membership:
> > >
> > http://lists.denveronline.net/mailman/options/jdom-interest/yo
> uraddr at yourhost.com
>
> --
>
((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))
> (              Despair brings compassion in our
     )
>
((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))
>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> + Thomas M. Sasala, Senior Developer             tsasala at hifusion.com
+
> + HiFusion, Inc.                                 (W) 703.848.4441
+
> + 8180 Greensboro Dr, #500                       (F) 703.848.4426
+
> + McLean, VA  22102
+
>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
> t.com
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
>




More information about the jdom-interest mailing list