I have an xml file, with next attribute:
x="a b c".
How can I choose a or b or c, without knowing their names (I need a generic form).
When I write @x[1] all three values are chosen.
I just want to be able to choose any value of the attribute, using values' place.
User Profile
Collapse
-
Attribue, array of values.
-
xsl:fo background-image
Hi, I cant move image. I have:
<fo:block-container absolute-position="absol ute" left="0px" top="0px" width="1920px" height="1080px" background-color="transpar ent" color="transpar ent">
<fo:block position="absol ute" left="100px" top="460px" width="480px" height="270px" display-align="center"... -
Treat unknown structure
I want to apply same treatment to xml file, without knowing what is the hierarchy of elements, -
<a>
<b/>
<a>
or
<a>
<b>
How can I do this? -
Thank U,
cjanged @color to select value... It works! -
Namespaces
When I write:
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
xmlns:style="ht tp://www.dvdforum.or g/2005/ihd#style"
xmlns:state="ht tp://www.dvdforum.or g/2005/ihd#state"
xmlns:fo="http://www.dvdforum.or g/2005/fo">
<xsl:output method="xml" version="1.0" indent="yes"... -
Thats what I wrote:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" indent="yes" />
<xsl:attribut e-set name="catsSet">
<xsl:attribut e name="color2">@ color</xsl:attribute>...Leave a comment:
-
I tried to implement this using "for each" and "attribute-set" (for each element to change their names...), but I get an error "unexpected child", it points to attribute-set......Leave a comment:
-
Rename attributes and elements
if I have:
<?xml version="1.0" encoding="UTF-8"?>
<pets>
<cats>
<cat1 color="black"/>
<cat2 color="red"/>
</cats>
</pets>
And I want to get next output:
misus1 color2="black"
misus2 color2="red"
,- change element cat1 to misus1,...
No activity results to display
Show More
Leave a comment: