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

Re: Style in XSL

  • From: "G. Ken Holman" <gkholman@C...>
  • To: xml-dev@l...
  • Date: Mon, 23 Oct 2006 08:12:46 -0400

Re:  Style in XSL
XSLT and XPath questions would be better posted to the following list:

   http://www.mulberrytech.com/xsl/xsl-list

There are a number of subscribers who would 
enthusiastically respond to such questions.

There is also an *excellent* XSLT FAQ at:

   http://www.dpawson.co.uk

At 2006-10-23 13:44 +0200, Tomaz Klančnik wrote:
>Hi,
>
>I'm operating with several XML files, all with similar structure:
>name: try1.xml
><tree>
>  <branch>
>   text<br/>
>      more text <br/>
>      even more text <br/>
>  </branch>
></tree>
>
>and here is my problem. one tag has a long-free text availabilty. And I would
>like to preserve at least this html tags <br/> and <b><b/>.
>
>XSL stylesheet i'm using has this structure:
>----
><xsl:stylesheet version="1.0" 
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
><xsl:template match="/">
>F1
>-----
>
>XSL in this case ignore HTML tags.

It is your stylesheet that is ignoring them

>Is there any way to persuade XSL to use them
>within <table> tag?

If you have <xsl:template match="table"> then you could choose something like:

   <xsl:copy-of select="."/>

to preserve the entire table.

But this is only a guess because you haven't 
given enough information of your details with 
which to give a more complete answer.  The 
stylesheet fragment of yours that made it through 
my mailer seems very succinct ... perhaps there 
is more to it than I can see because of your use of HTML.

You can choose to preserve any part of your input 
tree as you construct your output tree.

I hope this helps.

. . . . . . . . . . Ken

p.s. Just last weekend I published the latest 
editions of my two XSL books ... you are welcome 
to download the free preview excerpts that may 
help you better understand how XSL works:

   Practical Transformation Using XSLT and XPath
   (XSL Transformations and the XML Path Language)
   Twelfth Edition - 2006-10-15 - ISBN 978-1-894049-14-6
   Copyright (c) 2006 Crane Softwrights Ltd.
   / 388 Pages / Subscription price includes no-charge updates, /
   /           / soft-copy of included examples, and an         /
   /           / accessible rendition and 10 PDF renditions.    /
   /           / No-charge 121-page download preview excerpt.   /
   / No-charge prepaid copy for every U.S. Government employee. /

   Practical Formatting Using XSL-FO
   (Extensible Stylesheet Language Formatting Objects)
   Sixth Edition - 2006-10-16 - ISBN 978-1-894049-15-3
   Copyright (c) 2006 Crane Softwrights Ltd.
   / 478 Pages / Subscription price includes no-charge updates, /
   /           / soft-copy of included examples, and an         /
   /           / accessible rendition and 10 PDF renditions.    /
   /           / No-charge 244-page download preview excerpt.   /
   / No-charge prepaid copy for every U.S. Government employee. /


--
UBL/XSLT/XSL-FO training: Allerød/Vårø Denmark 2006-11-13,17,20/24
UBL International 2006  2006-11-13/17 http://www.ublconference.com
World-wide corporate, govt. & user group UBL, XSL, & XML training.
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 Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


  • References:
    • Style in XSL
      • From: "=?UTF-8?B?VG9tYXogS2xhbsSNbmlr?=" <slimt@e...>

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.