473,624 Members | 2,135 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XSL-FO relative position

Using XSL-FO, how can I specify a margin, or identation, with respect
to a block's containter, and not an absolute path on the PDF file?
Jul 20 '05 #1
2 3816
pl***@letsdotha tagain.com (Caroline) wrote in message news:<da******* *************** ****@posting.go ogle.com>...
Using XSL-FO, how can I specify a margin, or identation, with respect
to a block's containter, and not an absolute path on the PDF file?


One example would be a nested list

I have another problem:
1 - I need to put a picture whose path is found inside the XML (as a
property)
2 - Part of the path is found in the XML, the prefix being fixed, I
need to define it and concatenate the 2 parts.
I also need to write javascript and include a .js file

Thank you for all the help
Jul 20 '05 #2
This is the code for indentation (That does NOT work)
How can I print the value of ancestors for debugging??

<xsl:template match="itsimp_n ew">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block >&#x2022; </fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block space-after="5pt" >
<!-- here Im trying to
increase indentation for sub-lists -->
<xsl:attribut e
name="start-indent">
<xsl:variable
name="ancestors ">
<xsl:choose>
<xsl:when
test="count(lis te_new)">
<xsl:value-of
select="1 +

count(ancestor: :liste_new) *

1.25"/>
</xsl:when>
<xsl:otherwis e>

<xsl:text>2</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of
select="concat( $ancestors, 'cm')"/>
</xsl:attribute>

<xsl:apply-templates
select="*|text( )"/>

<!-- How to print the value of
ancestor?? -->
<xsl:value-of select="$ancest ors"/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:template>

pl***@letsdotha tagain.com (Caroline) wrote in message news:<da******* *************** **@posting.goog le.com>...
pl***@letsdotha tagain.com (Caroline) wrote in message news:<da******* *************** ****@posting.go ogle.com>...
Using XSL-FO, how can I specify a margin, or identation, with respect
to a block's containter, and not an absolute path on the PDF file?


One example would be a nested list

I have another problem:
1 - I need to put a picture whose path is found inside the XML (as a
property)
2 - Part of the path is found in the XML, the prefix being fixed, I
need to define it and concatenate the 2 parts.
I also need to write javascript and include a .js file

Thank you for all the help

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1762
by: Franck Perrin | last post by:
I'd like to know if there is a way to apply to successive XSL transformations on one XML file. I got this XML file : <page Action="N047"> <data defaultName="c0dos010" Type="String" CustomName=""/> <data defaultName="clxc0233" Type="String" CustomName="EndDate"/> </page> I want to generate java code like this :
0
1877
by: johkar | last post by:
My XML and XSL is below. Also below is a textual representation of what I want to get out of the XML with XSL. For each Extension node in XML, I am only concerned with those nodes with fieldTypeCodes of 10 - 17. For any given query there will be up to 4 Extension nodes fitting this criteria. I have everything working except for being able to insert a, b, c or d in the <box12 tags. Notice each row or found node has a different letter. ...
29
5728
by: Thomas | last post by:
Hi I have an XSL stylesheet: <xsl:for-each select="TRACKS/TRACK"> <tr class="TDL"> <td width="90%"><xsl:number value="position()" format="1" /> - <xsl:value-of select="TRACKTITLE"/></td> <td width="10%" align="center"><a href="{TRACKURL}" target="_blank">More info!</a></td>
7
3113
by: Andy Fish | last post by:
Hi, I'm stuck with an XSL problem - can anyone give me any hints? I have some XML with nested formatting tags like this: <text> this is plain <bold> this is bold
8
2355
by: Sebastian Kerekes | last post by:
Greetings, I'm developing an application that supports multiple languages. In my XSL I use variables to place the text where it belongs to. At the top of the document I include those variables - the included file depends on the language. Atm I'm editing those file manually. Luckily atm it's only two languages I have to work with, but even in this case I forget to add a variable that I added in the other file, forget to use entities .....
0
1633
by: Jimmy | last post by:
Hi, I have a (multi-tier) XML document and a XSL transform file (that is meant to transform the XML into a flat structure so I can insert the data into a database table). I have reached a problem node when doing a search for a match. The following works: <xsl:template match="PlanningPortalXML/pp:PlanningApplication/pa1:form">
4
3445
by: Pat Turner | last post by:
Hi, I have some XML like this: <family> <person name="bob"> <father ref="../../person" /> </person> <person name="charlie"> <child ref="../../person" />
6
2156
by: Mark Miller | last post by:
I have a scheduled job that uses different XSL templates to transform XML and save it to disk. I am having problems with the code below. The problem shows up on both my development machine (Windows XP Pro SP 1, .Net Framework 1.1) and on our production server (Windows 2K SP 4, .Net Framework 1.1). I have simplified the code and data to isolate the problem. When I use the xsl:strip-space (Line 12) declaration in conjunction with the xsl:sort...
6
1729
by: dave | last post by:
I really have 2 questions regarding the following xml snippet. The xml is a directory representation. <?xml version="1.0" standalone="yes"?> <FileSystem> <Row> <ID>1</ID> <Name>Root</Name> <Directory>Root</Directory> <Dir>true</Dir>
0
1073
by: Patrick.O.Ige | last post by:
I have a xml file and i want to format it using XSL I needed to do a distinct which is ok on the first node "Code" But when it gets to the "programDescription" node it prints out values for both Code="PRG004" and PRG005 which is CrazyTraining 2 and Program6 I want CrazyTraining 2 for PRG004 and Program6 for PRG005 Any help? Thx
0
8234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8172
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8677
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8620
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8474
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4079
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.