Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Invisible

From: lanmind <LANMIND01@-----.--->
To: NULL
Date: 10/8/2008 1:03:00 PM
On Oct 8, 12:48=A0am, "Joe Fawcett" <joefawc...@hotmail.com> wrote:
> "lanmind" <LANMIN...@gmail.com> wrote in message
>
> news:29a0535b-a09c-46bf-a7ef-cb83341a7094@t......=
> Hello,
>
> > I have a PHP script that returns a PHP variable's value (a number in
> > this case) inside an XML document to the client. Is it possible to
> > make this number invisible when the user views the returned XML but
> > still accessible by some javascript?
>
> > Thank you
>
> Most browsers don't display raw XML, they apply a stylesheet first to tur=
n
> it into (X)HTML. If your user is actually seeing the XML then there's
> nothing you can do. If they are seeing HTML then you can either:
> Store the data in a hidden input element or a variable or a hidden div. T=
his
> will be accessible via script but also via view source.
> Or
> Retrieve the XML via an XmlHTTPRequest. Then process it via script. This =
way
> they won't be able to see it unless they have some sort of helper install=
ed,
> Fiddler for example, which can view the raw HTTP traffic.
>
> --
>
> Joe Fawcett (MVP - XML)
>
> http://joe.fawcett.name

Hi,

I was thinking I could hide some of the returned XML because of this
at W3C:

"With XSLT you can add/remove elements and attributes to or from the
output file. You can also rearrange and sort elements, perform tests
and make decisions about which elements to hide and display, and a lot
more."

It's here under the "XSLT =3D XSL Transformations" section:

http://www.w3schools.com/xsl/xsl_intro.asp

I haven't studied XSLT so I didn't know but now I'm thinking "elements
to hide and display" is for for outputting HTML only.

Thank you


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent