[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Missing "BR" Tags XSLT


stylesheet br tags
At 2004-01-20 15:18 -0500, Strolia-Davis Christopher Contr MSG/MAT wrote:
>G. Ken Holman also said:
> >Note also you probably want an exclude-result-prefixes="prb" to clean up
> >the output.
>
>I've tried using the namespace associated with "prb" as a default namespace,
>but I get strange results sometimes in the browsers, so I've given up and
>just decided to use the prb: as my qname in order to make it work.

Note that I said "clean up the output", but you are speaking of the 
input.  You *are* required to use a namespace in your stylesheet because 
XPath 1.0 never uses the default namespace.

But, your use of a literal result element in your stylesheet produces:

      < br xmlns:prb="www.MyBRProblem.org">

... because you haven't pruned your stylesheet tree of unwanted output 
namespaces.  (note I added a space after "<" to prevent mailers 
interpreting the HTML).

My suggestion would remove the unwanted namespace nodes from all your 
literal result elements so they don't end up in your result tree or 
serialization.

You *do* need the namespace in your stylesheet to do addressing.

I hope this helps.

...................... Ken


--
North America (Washington, DC): 3-day XSLT/2-day XSL-FO 2004-03-15
-          (San Francisco, CA): 3-day XSLT/2-day XSL-FO 2004-03-22
Asia        (Hong Kong, China): 3-day XSLT/2-day XSL-FO 2004-05-17
Europe       (Bremen, Germany): 3-day XSLT/2-day XSL-FO 2004-05-24
Instructor-led on-site corporate, government & user group training
for XSLT and XSL-FO world-wide:  please contact us for the details

G. Ken Holman                 mailto:gkholman@C...
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/x/bc


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.