Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Pluggability of SAX parsers into DOM in JAXP

From: erik_midtskogen@---------.---
To: NULL
Date: 12/1/2006 8:18:00 AM

Hi Joe,

Thank you for your clarifications and suggestion.  I will definitely
look into using XPath/XSLT 2.0.  I was looking for a way of
incorporating a default namespace into XPath expressions and XSLT
transforms, but was surprised to discover that this concept hadn't been
addressed in the previous version.  It is definitely my preference to
have the capability of dealing with namespaces in my framework if this
can be done without making it harder to use for the 99% of the cases
where namespaces are irrelevant.

Thanks,
--Erik

Joe Kesselman wrote:
> erik_midtskogen@a... wrote:
> > Namespaces aren't normally used in html
>
> HTML is based on SGML, which doesn't have the concept of namespaces.
> XHTML is based on XML, which does.
>
> > could conceivably use namespaces in xhtml, but there would be no
> > practical purpose in doing so.
>
> That's absolutely incorrect. Namespaces are essential when XHTML is
> intermixed with other vocabularies -- MathML, SVG, and so on. That's
> becoming more common.
>
> For that reason, the XHTML elements themselves need to be in the correct
> namespace (http://www.w3c.org/TR/xhtml1, as you pointed out).
>
> Yes, it may not matter in your particular case. Or it may not matter
> _yet_, which I submit is likely to be a more accurate statement unless
> this is throw-away code.
>
> > But in this case, it's more important to me that users of
> > my framework be able to write XPath expressions into the configuration
> > files without having to specify the same namespace prefix in all their
> > location steps.
>
> Alternative suggestion: Use an XPath 2.0/XSLT 2.0 implementation, where
> the concept of default namespace is meaningful. That would let your
> users leave out prefixes yet still get results which are completely
> correct per the standards.
>
>
>
>
> --
> () ASCII Ribbon Campaign  | Joe Kesselman
> /\ Stamp out HTML e-mail! | System architexture and kinetic poetry



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