This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Handling Attributes with no values in XML
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: Handling Attributes with no values in XML
- From: "ciaran byrne" <ciaran dot byrne at 3tl dot com>
- Date: Fri, 28 Jul 2000 11:52:12 +0100
- Reply-To: xsl-list at mulberrytech dot com
Thankyou Julian and Mike,
I'm solved the problem by using TIDY. You see, the problem I
was originally having was that I had no control over the HTML content,
so that if I received a document with the noresize attribute not set then
MSXML would complain that it wasn't well formed when it attempted to load up
the XML.
Using TIDY I can ensure that this problem is looked after since it sets the
attribute like you suggested to noresize="noresize"
-----Original Message-----
From: owner-xsl-list@mulberrytech.com
[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Julian Reschke
Sent: Friday, July 28, 2000 10:03 AM
To: xsl-list@mulberrytech.com
Subject: RE: Handling Attributes with no values in XML
Yes, this is why you should use
noresize="noresize"
> -----Original Message-----
> From: owner-xsl-list@mulberrytech.com
> [mailto:owner-xsl-list@mulberrytech.com]On Behalf Of ciaran byrne
> Sent: Friday, July 28, 2000 10:10 AM
> To: xsl-list@mulberrytech.com
> Subject: RE: Handling Attributes with no values in XML
>
>
> The attrbiute problem can be handled fine in the XSLT process
> but, using MSXML3 the XML is first loaded using docXML.loadXML(strHTML)
> before the transform using the XSL docXSL.loadXSL(strXSL) takes place.
> As a result the XSLT process is never reached since the error occurs at
> the loadXML phase and not at the XSLT phase.
>
> -----Original Message-----
> From: owner-xsl-list@mulberrytech.com
> [mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Julian Reschke
> Sent: Thursday, July 27, 2000 5:46 PM
> To: xsl-list@mulberrytech.com
> Subject: RE: Handling Attributes with no values in XML
>
>
> > From: owner-xsl-list@mulberrytech.com
> > [mailto:owner-xsl-list@mulberrytech.com]On Behalf Of ciaran byrne
> > Sent: Thursday, July 27, 2000 5:50 PM
> > To: XSL-List
> > Subject: Handling Attributes with no values in XML
> >
> >
> > Hi all,
> > I'm converting from HTML to XML using MSXML.
> > My problem is handling the case where you have an attribute with
> > no value
> >
> > e.g.
> > <frame name="cornerFrame" scrolling="NO" noresize
> > src="Frames/cornerFrame.htm" >
> >
> > here you will see that the noresize attribute doesn't have a
> > value.So, when
> > loading
> > it up using
> > docXML.loadXML(strHTML) I get an error.
> >
> > Has anyone ever dealt with this issue..or indeed can it be dealt with..
> > that my friends is the million dollar question.
>
> In XML, you need to represent that as noresize="noresize". When using the
> HTML output mode of XSLT, it automatically gets minimized to the non-value
> form.
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list